in reply to Re: Large FTP task
in thread Large FTP task

Hi Roboticus, I have a similar problem. I'm trying to FTP GET certain files from mainframes to zLinux. I was unable to retrieve files on tape. and I tried using the following command FTP->new($MVSADDR,Timeout=>1800,Debug=>1); It seems to work. However if I try to FTP GET files which more than size 100 MB -located either on disk or tape, A zero byte file is downloaded to Linux! I tried the above solution of using while loop. But I still get a zero byte file and a message "250 Transfer completed successfully." I think because of this 250 message, the code exits out of the while loop. How do I get around this problem? Can anyone help? -Thanks, Regards, Gauri

Replies are listed 'Best First'.
Re^3: Large FTP task
by roboticus (Chancellor) on Jun 29, 2006 at 22:39 UTC
    Gauri:

    I'm afraid I won't be much help there ... it just works on my system. I've retrieved files as large as 3GB without any problems other than finding the space to put the darned thing!

    But here are a couple of things I'd look at:

  • If you can read smaller files but not the 100MB ones, perhaps you should alter the timeout to see if that affects it.
  • Have you tried turning on debug mode in Net::FTP to see if it has any clues for you?
  • A bit tedious--but you might consider monitoring the traffic with Ethereal.

    --roboticus