Re: Re: How to set environment variable



28 Sep 2007 03:45:54 -0000, vikram vikram vikram <vicky_brsh@xxxxxxxxxxxxxx>:



Hi All,

Yes i tried by copying the file to .env and executed the .env.

But still the environment variable is not set. Please suggest some solution for setting the environment variable. May be some other way????????


see this test,

[root@squid2 tmp]# echo TESTVAR=123 > myenv
[root@squid2 tmp]# . myenv
[root@squid2 tmp]# echo $TESTVAR
123
[root@squid2 tmp]# echo $SHELL
/bin/bash
.



Relevant Pages