Results 1 to 2 of 2
Hi,
Am working on Redhat Linux.
i want to set and get some user defined environment variables..
i know that am supposed to use getenv() and setenv() from c but ...
- 10-04-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 2
environment variable
Hi,
Am working on Redhat Linux.
i want to set and get some user defined environment variables..
i know that am supposed to use getenv() and setenv() from c but my doubt is about the actions to be done in .bash_profile file regarding the environment variable...
can anybody guide me in this.
Thanks,
Anand
- 10-04-2007 #2
you can view the values of a variable by typing
you can set a variable by typingCode:echo $VARNAME
.bash_profile is really a script so you can just add these commands and do whatever.Code:export VARNAME=value


Reply With Quote