1821584 Members
3400 Online
109633 Solutions
New Discussion юеВ

wget and .wgetrc file

 
Belinda Dermody
Super Advisor

wget and .wgetrc file

I have wget 1.10.2 configured and running on my HP 11.11 system with prngd as the random number generator. I am able to go to the requested https site and download the zip files that I need. Using the following command line.
wget --user=999999 --password=999999999 --no-check-certificate --secure-protocol=auto --random-file=/var/opt/prngd/prngd-seed https://blah.blah.blah.com

I want to put the user name and password in the .wgetrc file and right now I have it set up as
.wgetrc
--user=999999 --password=999999

but when I run the wget command I receive the following error
HTTP request sent, awaiting response... 401 Unauthorized

Does anyone have a .wgetrc file with examples.

I would rather use that instead of having the userid and password in a script..
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: wget and .wgetrc file

Shalom James,

test the authentication with say ssh. It may be a simple mistake in the password or user id.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Belinda Dermody
Super Advisor

Re: wget and .wgetrc file

Thanks Steven, even though you did not get me the answer I needed, you shook the cob webs out and I google my .wgetrc and the first response was the example that I was looking for. The data that goes in the file is in line order
user = 999999
password = 99999
etc...
etc..