variable environment

Reply

Join Date: Jun 2005
Posts: 8
Reputation: nik- is an unknown quantity at this point 
Solved Threads: 0
nik- nik- is offline Offline
Newbie Poster

variable environment

 
0
  #1
Aug 2nd, 2005
i try t set up a variable environment but i have problem.

as root i do "name variable"=name variable; export name variable;
PATH=.....

but when i do reboot the variables is not there.i don't know how to save a variable.
Do yoy have any suggestions?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 36
Reputation: mittelgeek is an unknown quantity at this point 
Solved Threads: 0
mittelgeek's Avatar
mittelgeek mittelgeek is offline Offline
Light Poster

Re: variable environment

 
0
  #2
Aug 7th, 2005
Depends on what shell you using. The variable that is being changed needs to be included in the startup "script" that the shell uses.

If appending, you can do this: PATH=$PATH:/foo/bar , but if you are prefixing do this: PATH=/foo/barPATH .

Anyway, the following is a quick break down of what might need to be touched:

csh
.login
.cshrc

sh/ksh
.profile

bash
.bash_profile
.bash_login
.profile

Definitely check your shell docmentation for details though.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC