LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Environment Variables (https://www.linuxquestions.org/questions/linux-software-2/environment-variables-507016/)

crimsonflame123 12-03-2006 12:49 AM

Environment Variables
 
I use many applications that access the net many of them require the environment variable http_proxy to be set as I am behind a proxy which requires authentication.

To save the trouble of creating a new environment variable every time I launch a shell i put the following lines in the .bash_profile file

export http_proxy=http://username: password@myproxyname:80

(this is the same command i use everytime i launch a shell to set the http_proxy environment variable)

However after the linux boots and i open a new shell...
i get the http_proxy variable like this upon echoing

echo $http_proxy

http://username@password:myproxyname:80


I dont know why the places of '@' and ' : ' have gotten interchanged ... I checked my .bash_profile again but its all right there ...

Hope someone can help me out on this ...
I use Fedora Core 6

Thanks in advance :)

nova_ 12-03-2006 01:00 AM

export http_proxy="http://username: password@myproxyname:80"

what happens when you put that in the file and reboot?

crimsonflame123 12-03-2006 01:12 AM

nope ... it didnt work either


it still gives the same output to echo

http://username@password:myproxyname:80

Thanks for the help anyways :)


All times are GMT -5. The time now is 02:45 AM.