Hello,
If wget cannot connect to the FTP server the first time,
it fails to CD properly after checking the path with PWD.
Here is a -d listing when connecting after failing. Thanks!
Jason
$cmd = "wget -d --limit-rate=999k --tries=0 --no-remove-listing -N
$ftp/*.rpm";
--11:06:12--
ftp://ftp:[EMAIL PROTECTED]/pub/linux/distributions/mandrivalinux/devel/cooker/i586/media/main/release/*.rpm
(try: 2) => `.listing'
Found carroll.aset.psu.edu in host_name_addresses_map (0x808bf98)
Connecting to carroll.aset.psu.edu|128.118.2.96|:21... connected.
Created socket 3.
Releasing 0x0808bf98 (new refcount 1).
Logging in as ftp ...
220- snip big login message
--> USER ftp
331 Please specify the password.
--> PASS [EMAIL PROTECTED]
230 Login successful.
Logged in!
==> SYST ...
--> SYST
215 UNIX Type: L8
done. ==> PWD ...
--> PWD
257 "/"
done.
==> TYPE I ...
--> TYPE I
200 Switching to Binary mode.
done. ==> CWD not required.
conaddr is: 128.118.2.96
==> PASV ...
--> PASV
227 Entering Passive Mode (128,118,2,96,184,134)
trying to connect to 128.118.2.96 port 47238
Created socket 4.
done. ==> LIST ...
--> LIST
150 Here comes the directory listing.
done.
[ <=> ] 331 --.--K/s
Closed fd 4
226 Directory send OK.
11:11:23 (412.30 KB/s) - `.listing' saved [331]
DIRECTORY; perms 700; month: Sep; day: 8; year: 2005 (no tm);
DIRECTORY; perms 700; month: Sep; day: 23; year: 2005 (no tm);
DIRECTORY; perms 755; month: May; day: 24; year: 2006 (no tm);
PLAINFILE; perms 644; month: Sep; day: 9; year: 2005 (no tm);
PLAINFILE; perms 644; month: Sep; day: 9; year: 2005 (no tm);
No matches on pattern `*.rpm'.
Closed fd 3
_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/