[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] FTP client? (fwd)



According to Paul J. Schinder:
> 
> At 1:22 AM -0800 12/3/97, Rich Morin wrote:
> 
> } I'm trying to FTP several thousand files from a Unix-based server
> } to a Jaz disk mounted on a PowerMac 7100/80.  I've been using Fetch
> } 3.0, with the preferred memory set to 5000.  I have Fetch running
> } in the foreground and the screen saver disabled.  With all of this,
> } Fetch dies in assorted parts of the transfer, saying:

I've had this problem before.  It has something to do with
Fetch itself.  I'm not sure what, but after attempting to
transfer about 1,500 files from the Mac at work to the
SGI's here, I found that Fetch barfs after about 500 -
1,000 of the files were transferred.  It was a real pain.
I wound up doing it all by hand.  This was before I found
out about Net::FTP.

I would suggest writing a small FTP program of your own
using the Net::FTP stuff.  I've used it before and it does
everything FTP does.  If you are going from a Unix box to
the Mac, then I'd suggest getting onto the Unix box and
doing a FIND command.  Like so:

%find . -name "*" -print > dir.out

This will put all of the file names you want to download
(and their full pathname) into a file which you can then
download and split on the "/".  Once you have done this you
will wind up with a complete listing of the directories you
will need to create in order to do the transfers.  Using
the built in Perl commands you can create the directories.
Then just download the file to the current directory and
move it to the proper directory.  :-)

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch