Hi All,

I need to set an environment variable. Following is what I did.

TMPDIRECTORY=/usr/local/tmp_directory

env |grep TMPDIRECTORY
<blank>
echo $TMPDIRECTORY
/usr/local/tmp_directory

export TMPDIRECTORY
set |grep TMPDIRECTORY
 /usr/local/tmp_directory

env |grep TMPDIRECTORY
 /usr/local/tmp_directory


Now I logged off as root as I had su 'ed in and then run the below commands.
Now when I checked in the env of the non root user, the value was not there.
Again I su 'ed and the variable was not set in there either. I need this
variable to stay in the system even after I log off as any user. How can I
make a variable stay. This variable is used in certain scripts to store tmp
content. Please advise.

Regards,
Ashish
_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to