How to set the variable
I use the below command on the shell can set the variable , it works .
$export ORA=/opt/ora echo $ORA /opt/ora $export JAVAHOME=/usr/java echo $JAVAHOME /usr/java but if I add these two lines to a file , and then run it , it do not work . can advise I have many varibles that want to be added to my current login , except run it one by one , what can i do ? thx |
Hi elainelaw
open /etc/bashrc file and add Code:
$export ORA=/opt/ora Code:
source /etc/bashrc Cheers !!! |
You know,I googled and THIS was th first result.
http://www.linuxquestions.org/questi...script-344057/ End |
Quote:
thx reply, But if I don't to change anything in system , I only use it to test , I will use it for one time only , can advise is there other method ? thx |
Quote:
|
All times are GMT -5. The time now is 09:24 PM. |