944,167 Members | Top Members by Rank

Ad:
Aug 2nd, 2005
0

variable environment

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nik- is offline Offline
8 posts
since Jun 2005
Aug 7th, 2005
0

Re: variable environment

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
mittelgeek is offline Offline
37 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Installing knoppix to hd dual boot
Next Thread in Linux Applications and Software Forum Timeline: Installing Slackware 10.1





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC