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

Re: [MacPerl] Net::FTP and Mac binaries



At 14:14 1999-04-23 -0400, you wrote:
>On Fri, Apr 23, 1999 at 03:16:06PM +0100, Peter Westlake wrote:
>} At 08:10 1999-04-23 -0400, Paul J. Schinder wrote:
>} >On Fri, Apr 23, 1999 at 12:23:05PM +0100, Peter Westlake wrote:
>} >} I'm using Net::FTP to copy files to and from a Macintosh. Can Net::FTP
>} >} cope with MacBinary mode? If not (and it doesn't look as though it can,
>} >} from looking at the code), are there any MacPerl extensions that would
>} >} help me?
>} >
>} >Mac::Conversions. CPAN/authors/id/S/SC/SCHINDER/Mac-Conversions-1.00.tar.gz.
>} >As the name implies, it only works under MacPerl.
>} >
>} >If you're then sending to an FTP server on another MacOS machine, you
>} >can use $ftp->quot to turn MacBinary mode on.  For example, when
>} >sending MacBinary from my Unix machines at work to my Mac at home when
>} >it's running MacOS, the script that does the work does the following
>} >just before sending a MacBinary to NetPresenz:
>} >
>} >            $ftp->binary;
>} >            $ftp->quot("MACB E");

Okay, I now have Mac::Conversions installed. I tried this, having
previously done $ftp->login successfully, and then used

   $ftp->put("thing");

- but it didn't work. The file (a compiled AppleScript, FWIW) arrived
with no file type, size zero K. I transferred the same file to the
same place with Fetch 3.0.3 and got "thing.bin", which expanded into
the original when double-clicked. 

So what am I doing wrong? The telnet server on the other Mac
is NCSA/BYU Telnet 2.5; could its command syntax be different,
or doesn't it work like that?

Peter.


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org