Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing proxy 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I'm using an older Solaris box. (The admin has kinda disappeared) and when I run wget from it, it tries to go through a proxy which the company no longer has.

I realize I can pass wget the --proxy=no command and that does work fine.

But I'd like to actually set it so the machine doesn't think this proxy is there, just in case other services or users may want to use things like wget.

I checked the environment variables, and none have the proxy in them, I grep'd the /etc/ directory, and also didn't find it.

Is there another place I can look?
 
Right, but in my case, those environment variables are not set, yet wget is trying to use a proxy none the less, that's why I'm wondering if there's an alternative way to set these not listed on that page.
 
Nope, no alias... accessing it directly from /usr/local/gnu/bin/wget

 
The docs call out a rc file called .wetrc. Do you have one of those?

This is what the docs have on start-up files:

When initializing, Wget will look for a global startup file, /usr/local/etc/wgetrc by default (or some prefix other than /usr/local, if Wget was not installed there) and read commands from there, if it exists.

Then it will look for the user's file. If the environmental variable WGETRC is set, Wget will try to load that file. Failing that, no further attempts will be made.

If WGETRC is not set, Wget will try to load $HOME/.wgetrc.

The fact that user's settings are loaded after the system-wide ones means that in case of collision user's wgetrc overrides the system-wide wgetrc (in /usr/local/etc/wgetrc by default). Fascist admins, away!

 
none of those files exist... I'm thoroughly baffled.
 
There should be a global startup file where the program is installed... By default /usr/local/etc/wgetrc

To find what wget you are using, use command: which wget
 
/usr/local/gnu/etc/wgetrc

Grrr... shoulda seen that, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top