in reply to Re: Re: FTP downloading failed
in thread FTP downloading failed

Well, it looks like even if any of new() login() type() cwd() methods fail, you will continue with the process (having diligently saved messages to @$error_minilog). So you should a) stop if any of the prerequsites fail and b) print out @$error_minilog to see what happened.

However, since you get part of the file, the pre-reqs are probably working (though if cwd() failed you may not be getting the file you think you're getting). The doc says a null return means the operation failed, which confirms the get() fails.

Several possibilities suggest themselves to me:
  1. There is a network flakiness between you and the ftp server, which you might test manually using an ftp client or,
  2. whatever the reason for the problem, you have a better chance of seeing it with Debug => 1 or some other positive value in new(). or
  3. cwd() failed and a shorter file of the same name exists in the directory you are left in.


--Bob Niederman, http://bob-n.com

Replies are listed 'Best First'.
Re: Re: Re: Re: FTP downloading failed
by bobn (Chaplain) on Jun 25, 2003 at 06:42 UTC
    Be sure that type('I') is correct and succeeded. I seem to rememeber that trying to retrieve binary files in ascii mode will frequently hang.

    --Bob Niederman, http://bob-n.com