export variables
Hi i need to set some variables....
The problem is that the variables are denoted inside a script file.... Inside the script file i export some variables export TEST=/bin/ls i execute the script as sh myscript.sh after the script finish execution the variables are not set... I think that the problem is that the children terminates... Any suggestion? |
If these are variables that your user needs set, just add them to their .bashrc or .bash_profile or even the /etc/profile file which is the global one, why create a script to run yourself each time? Better details get better reponses.
|
I am talking about bash scripts.... I need a script that creates some enviaronmental variables when finishes execution
|
Run the script with 'source myscript.sh'. The source command will run the script in your interactive shell (unlike sh which launches a new shell).
|
All times are GMT -5. The time now is 10:04 PM. |