Thanks, Peter, for the info on URL Access Scripting. Yes, it's there in my OS 8.6 installation. I'll give it a try ... as you say, looks lighter-weight and less finicky to script than the Fetch app.

regards,

Scott Maxson

At 08:54 AM 2/19/2004 +0100, you wrote:
Apart from using Fetch or Interarchy, back in the days I ran into similar problems I turned to URL Access Scripting (living in the Scripting Additions Folder) which worked very well and with less overhead than a full fledged FTP client, while it is still possible to display a progress dialog. So you could try to call this app using Mac::Glue. The only thing is that I don't remember if URL Access Scripting was included in OS 8.6 already. And there are of course no threaded parallel downloads - except you make a copy of URL Access Scripting and call it seperately - which isn't really elegant...

Am 19.02.2004 um 05:49 schrieb Chris Nandor:

At 20:22 -0800 2004.02.18, Scott Maxson wrote:
I'm running MacPerl 5.6.1r2 under OS 8.6, and having trouble downloading
large (2+ Mb) binary files using Net:FTP. I've given MacPerl 40 Mb of RAM
in the finder, but the file transfer stops at around 1.5 Meg and my mac
freezes up (no out-of-memory error, but a lockup of my system requiring a
hard reboot). If I increase MacPerl's memory allocation to 80 Mb, I can get
a bit further on the transfer, but something is clearly wrong here.

MacPerl has always had some problems handling memory problems, in large part because of Mac OS itself, which doesn't offer robust dynamic memory allocation. That's the root of the problem: though of course various solutions are possible, there's little desire to work on it at this time. The basic answer is to do exactly what you did.

Another option is to use an external program to do the work, via Mac::Glue,
such as with Interarchy or Fetch:

        my $ftp = new Mac::Glue 'Fetch';
        $ftp->activate;
        $ftp->fetch($localdir, url => 'ftp://user:[EMAIL PROTECTED]/path/file');

The same code should work for both programs, as Interarchy borrowed from
Fetch.  To get this to work with Fetch, just drop Fetch onto the "gluemac"
droplet included with MacPerl.

(Password can be handle by Keychain too, so you don't necessarily need to
put in here.)

--
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/


___ Peter Hartmann ________


mailto:[EMAIL PROTECTED]





Reply via email to