bug-wget
[Top][All Lists]

## Re: [Bug-wget] using the wgetrc file

 From: Todd Pattist Subject: Re: [Bug-wget] using the wgetrc file Date: Fri, 31 Jul 2009 13:57:34 -0400 User-agent: Thunderbird 2.0.0.22 (Windows/20090605)



2) I can't get it to pay attention to the 'wgetrc' file. All of the help I have seen for placing this file relates to unix. (e.g. from the sample
    wgetrc file:

(## Wget initialization file can reside in /usr/local/etc/wgetrc
## (global, for all users) or \$HOME/.wgetrc (for a single user).


Looking further, i found one location that says to simply make sure the wgetrc file is in the same location from where you run the wget file. i
    am using windows xp and i run wget from the command line.  i put the

wgetrc in both the C: and desktop locations. I use the sample wgetrc
    file that I found with a few modifications

So, where can i put this file.

It finds it via the WGETRC environment variable.
Here's how I do it using two files:

SET WGETRC=c:\path\to\wgetrc\file\wgetrc.txt
c:
cd \path\to\wgetrc\executable
wget "http://abc.xyz.com/something.html";


And the wgetrc.txt file where I put all options (in c:\path\to\wgetrc\file\wgetrc.txt)
3) once i put the file in the proper spot, how do i list the url i want it
    to visit?