At 09:20 AM 11/5/2002 -0700, Jing Ping Ye wrote:
Dear Sir:
I tried to use "wget" download data from ftp site but got error message as
following:
>
wget
<ftp://ftp.ngdc.noaa.gov/pub/incoming/RGON/anc_1m.OCT>ftp://ftp.ngdc.noaa.gov/pub/incoming/RGON/anc_1m.OCT
Screen show:
------------------------------------------------------------------------------------------------------------------------------------------
--09:02:40--
<ftp://ftp.ngdc.noaa.gov/pub/incoming/RGON/anc_1m.OCT>ftp://ftp.ngdc.noaa.gov/pub/incoming/RGON/anc_1m.OCT
=> `anc_1m.OCT'
Resolving ftp.ngdc.noaa.gov... done.
Connecting to ftp.ngdc.noaa.gov[140.172.180.164]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/incoming/RGON ... done.
==> PORT ... done. ==> RETR anc_1m.OCT ...
Error in server response, closing control connection.
Retrying.
Using the -d switch reveals that the server refuses to send the file due to
insufficient permissions:
200 PORT command successful.
done. ==> RETR anc_1m.OCT ...
--> RETR anc_1m.OCT
550 anc_1m.OCT: Permission denied.
No such file `anc_1m.OCT'.
But when I use ftp ( ftp ftp.ngdc.noaa.gov), I can get data.
False.
$ ftp
ftp> open ftp.ngdc.noaa.gov
Connected to ftp.ngdc.noaa.gov.
220 apex FTP server (Version wu-2.6.1(1) Thu Nov 29 13:24:22 MST 2001) ready.
Name (ftp.ngdc.noaa.gov:******): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-Please read the file README.txt
230- it was last modified on Thu Jan 6 07:55:46 2000 - 1033 days ago
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/incoming/RGON
250 CWD command successful.
ftp> pwd
257 "/pub/incoming/RGON" is current directory.
ftp> get anc_1m.OCT
200 PORT command successful.
550 anc_1m.OCT: Permission denied.
This is not a bug in wget.