Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-03-2006, 12:49 AM   #1
Registered: Jul 2005
Location: varanasi,india
Distribution: FC4
Posts: 74

Rep: Reputation: 15
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


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

Last edited by crimsonflame123; 12-03-2006 at 12:59 AM.
Old 12-03-2006, 01:00 AM   #2
LQ Newbie
Registered: May 2006
Posts: 5

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

what happens when you put that in the file and reboot?
Old 12-03-2006, 01:12 AM   #3
Registered: Jul 2005
Location: varanasi,india
Distribution: FC4
Posts: 74

Original Poster
Rep: Reputation: 15
nope ... it didnt work either

it still gives the same output to echo


Thanks for the help anyways


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM
Environment Variables if you su concoran Linux - Newbie 1 08-16-2002 07:18 PM
environment variables da Perp Linux - Newbie 5 01-23-2002 09:34 AM
environment variables aethereal Linux - Newbie 7 12-19-2001 09:34 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration