LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wget problems (https://www.linuxquestions.org/questions/linux-software-2/wget-problems-350281/)

bmeckle 08-05-2005 10:59 AM

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.

acid_kewpie 08-05-2005 11:55 AM

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 .....

linuxlastslonge 08-05-2005 12:28 PM

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-

bmeckle 08-05-2005 01:52 PM

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.


All times are GMT -5. The time now is 02:53 AM.