Mostrando entradas con la etiqueta system variable. Mostrar todas las entradas
Mostrando entradas con la etiqueta system variable. Mostrar todas las entradas

miércoles, 6 de junio de 2012

How to define system variable in Mac OS

Another tricky business....
We all know how to define a system variable in Mac OS we just do:

set MY_VAR=varcontent
Now the down side of this is that when you close the console ( or the tab console), or just switch tabs the variable doesn't exists any more right????


Well you are free to google the explanation for that ( is not to hard to see though).
Any way here is how you should do it if you want the variable to survive you console:

+ Go you your home path
+ With you favorite text editor change (or create) the file ".profiles"
+ In there add you variable

And presto!!!!!
From now on the variable/s listed there will be available in each console you open (only for your user of course).

VM Arguments in MULE ESB

Right this is one of those things that many consider tricky, and why not I mean is not like they have a whole page about this.

Any way if you work with Mule ESB one of the thing you may find your self trying to do is to run it from the command line. No eclipse plugin no Studio no nothing.

How do you pass VM arguments to the app running inside you Mule instance?
Well look no more for here is the answer:

mule -M-Dyour.envvar=envvar_value

As you can see it's the same as running any Java app from the command line BUT the folks at Mule change it a little bit adding the "-M".

And that's it.