Hi there

I have hit a problem with wget (1.10.2). If I am using wget for FTP 
protocol, with -w 5m option to get some files from some directory on the 
FTP server (BUT NOT from the "/" of the FTP server). When the remote FTP 
server has a 3m timeout on the control connection, after the 5 minutes pass 
wget tries to get the next file, it detects that the control conneciton 
has gone down and retries it but it does not CWD as such it tries to get 
the next file from the FTP server default directory after login which of 
course fails.

$ wget -c -w 5m ftp://user:[EMAIL PROTECTED]/dir/file*
--13:50:19--  ftp://user:[EMAIL PROTECTED]/dir/file*
           => `.listing'
Connecting to server:21... connected.
Logging in as download ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /dir ... done.
==> PASV ... done.    ==> LIST ... done.

    [ <=>                                 ] 4,078         --.--K/s     

13:50:19 (137.41 KB/s) - `.listing' saved [4078]

Removed `.listing'.
--13:55:19--  
ftp://user:[EMAIL PROTECTED]/dir/file1
           => `file1'
==> CWD /dir ... 
Error in server response, closing control connection.
Retrying.

--13:55:20--  
ftp://user:[EMAIL PROTECTED]/dir/file1
  (try: 2) => `file1'
Connecting to server:21... connected.
Logging in as download ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not required.
                         ^^^^^^^^^^^^^^^^^^^^ ??
==> PASV ... done.    ==> REST 1000 ... done.    
==> RETR file1 ... 
No such file `file1'.

(yes, I forgot to mention initially, I also have partially downloaded 
file1 first 1000 bytes already as you can see from REST).

The server is a proftpd-1.2.10 one (don't know if it matters).

Please help!

PS: please CC me as I'm not subscribed to any wget mailing lists, 
thanks!

-- 
Mihai RUSU                                      Email: [EMAIL PROTECTED]
GPG : http://dizzy.roedu.net/dizzy-gpg.txt      WWW: http://dizzy.roedu.net
                        "Linux is obsolete" -- AST

Reply via email to