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

Re: [MacPerl] Anarchie FTP question



On Fri, Sep 04, 1998 at 11:13:01AM -0500, Dan Bongert wrote:
} Quoth Paul J. Schinder:
} 
} >Have you checked to see whether this error message is right?  It seems
} >to me Anarchie is telling you the file isn't there.  The Info-Mac
} >archives don't always immediately have the stuff in the latest
} >Info-Mac digest.
} 
} It's there and the first file is downloaded correctly--the download
} actually continues after the error message comes up in Perl. I think what's
} happening is MacPerl is waiting for Anarchie to tell it that the download
} is done so it can do the next, and it's timing out. Does that sound right?

It very well could be, since the same thing can happen in AppleScript.
In AppleScript, you can set the time that you're willing to wait on an
application to respond ("with timeout ..."), so there must be a way to
do it in the AppleEvent.  I'd be suprised if Chris didn't give you a
way to control that in Mac::Apps::Anarchie.

Alternatively, you can download with MacPerl itself using LWP::Simple
or Net::FTP if you want more control.  The advantage is that MacPerl
*will wait* until the download is either finished or fails, so you
have precise control.  The disadvantage is that you'll have to add
more Perl to do the fancy stuff (deBinHex/MacBinary, auto typing after
consulting Internet Config) that Anarchie will do for you.  On my ftp
site <ftp://ftp.clark.net/schinder/> you'll find my script getem5.pl
which I use to do automated downloads.  It's not "install and use"
since it has a lot of my own personal tastes and needs built in, but
you might find it useful.

} Dan Bongert						(608) 255-8591
} dbongert@students.wisc.edu		109 East Johnson Street #1
} herkimer@upl.cs.wisc.edu		Madison, WI 53703
} 
----
Paul Schinder
schinder@pobox.com

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