LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-05-2005, 10:59 AM   #1
bmeckle
Member
 
Registered: Jun 2004
Posts: 60

Rep: Reputation: 15
wget problems


I have a co-worker trying to use the windows wget to retrieve files. Since I have used wget for Linux before he has asked me to help, but I can't figure out what the problem is. Can anyone help? This is the command he is using.

wget --verbose --no-passive-ftp -r -t 1 -T 900 -o Updatelog ftp_proxy = hdq90.bepc.net:21/ ftp://ftp.nai.com/commonupdater/


We keep getting the following in his log file.

--10:41:23-- http://ftp_proxy/
=> `ftp_proxy/index.html'
Resolving ftp_proxy... failed: Unknown host.
--10:41:26-- http://=/
=> `=/index.html'
Resolving =... failed: Unknown host.
--10:41:28-- http://hdq90.bepc.net:21/
=> `hdq90.bepc.net+21/index.html'
Resolving hdq90.bepc.net... 172.21.49.90
Connecting to hdq90.bepc.net|172.21.49.90|:21... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified

0K 17.34 MB/s

10:41:28 (17.34 MB/s) - `hdq90.bepc.net+21/index.html' saved [447]

--10:41:28-- ftp://ftp.nai.com/commonupdater/
=> `ftp.nai.com/commonupdater/.listing'
Resolving ftp.nai.com... 216.143.70.11
Connecting to ftp.nai.com|216.143.70.11|:21... failed: No such file or directory.
Giving up.

unlink: No such file or directory

FINISHED --10:41:51--
Downloaded: bytes in 1 files


Thanks in advance.
 
Old 08-05-2005, 11:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're clearly using the ftp_proxy option wrong, as it thinks that "ftp_proxy" is the name of the server you want to reach.

you would normally export is to your shell:

export ftp_proxy=proxy.blah.com
wget .....
 
Old 08-05-2005, 12:28 PM   #3
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
since you are using windows, i would recommend exporting the variable to your environment variables.

you'll have to do:

set ftp_proxy=proxy.foo.com
wget ...

to check that cmd/command took your variable, run:

set

to output a list of your environment variables.

i don't know of any other way to do it other than using set, seeing you aren't running bash ;-)


hope i could help!

-matthew-
 
Old 08-05-2005, 01:52 PM   #4
bmeckle
Member
 
Registered: Jun 2004
Posts: 60

Original Poster
Rep: Reputation: 15
Set the environment variables, had him edit his command and re-run it. Got the following.
Also noticed an index.html file with an error 530 user not logged in error. But the sight doesn't require a login.

command

set ftp_proxy=hdq90.bepc.net:21
wget -r -t 1 -o Updatelog ftp://ftp.nai.com

Also tried
wget -r -t 1 -o Updatelog ftp://anonymous@ftp.nai.com


Log file

--13:45:02-- ftp://anonymous@ftp.nai.com/commonupdater/
=> `ftp.nai.com/commonupdater/index.html'
Resolving hdq90.bepc.net... 172.21.49.90
Connecting to hdq90.bepc.net|172.21.49.90|:21... connected.
Proxy request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified

0K 14.48 MB/s

13:45:02 (14.48 MB/s) - `ftp.nai.com/commonupdater/index.html' saved [369]


FINISHED --13:45:02--
Downloaded: bytes in 1 files


INDEX.HTML

220 InterScan Web Security Suite - FTP daemon 2.0 PASV 530 not logged in, OPEN or USER expected, use user@host to log in at first. 530 not logged in, OPEN or USER expected, use user@host to log in at first. 530 not logged in, OPEN or USER expected, use user@host to log in at first. 530 not logged in, OPEN or USER expected, use user@host to log in at first.


Appears that it is no longer being dropped at the proxy server.

Thanks in advance.
 
  


Reply



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
wget/curl problems PLS HELP tommmmmm Linux - Software 0 08-19-2005 03:58 AM
wget/curl problems. redirection after post method tommmmmm Linux - Software 1 08-10-2005 10:36 AM
wget guildivernos Linux - Networking 1 02-18-2005 04:13 PM
wget toastermaker Linux - Software 4 11-13-2004 10:59 AM
How do I get WGET to do this...? mrde50garfield Linux - Software 1 12-03-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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