Re: [MacPerl] Net::FTP image transfer problems

2002-04-26 Thread Axel Rose
Hello Katherine, I guess you have to configure WebSTAR to not touch incoming files. Net::FTP works perfectly. I do this very often but to different servers. Contact me privately and I can give you a login to my WebSTAR server to check. Axel

[MacPerl] Net::FTP image transfer problems

2002-04-26 Thread Katherine Richmond
Hi all, Does anyone have experience using Net::FTP to transfer a jpeg file? I am logging onto another Mac that is running WebSTAR. The jpeg transfer appears to go okay, but the jpeg is somehow corrupted during the transfer. In the Net::FTP documentation, it says that images should be sent as bina

Re: [MacPerl] Net::FTP notes

2001-09-06 Thread Chris Nandor
At 16:56 +0200 2001.09.06, Axel Rose wrote: >Um 10:41 Uhr -0400 06.09.2001, schrieb Chris Nandor: >>You mean MacPerl 5.6.1a5 is much faster with Net::FTP than 5.2.0r4 is? > >Very much indeed! Very cool. I suspected GUSI 2 in 5.6.1 would be faster than GUSI 1 in 5.2.0, but never benchmarked. --

Re: [MacPerl] Net::FTP notes

2001-09-06 Thread Axel Rose
Um 10:41 Uhr -0400 06.09.2001, schrieb Chris Nandor: >You mean MacPerl 5.6.1a5 is much faster with Net::FTP than 5.2.0r4 is? Very much indeed! I'll check whether a simple substition open -> sysopen O_CREAT | O_TRUNC will resolve the leading space issue. I already contacted Graham. Axel

Re: [MacPerl] Net::FTP notes

2001-09-06 Thread Chris Nandor
At 16:32 +0200 2001.09.06, Axel Rose wrote: >First - an extreme acceleration happened after using MacPerl 5.6.1a5 >compared to 5.20r4. You mean MacPerl 5.6.1a5 is much faster with Net::FTP than 5.2.0r4 is? >There is a problem though in Net::Cmd.pm. SIGPIPE must be commented. >This is scheduled

[MacPerl] Net::FTP notes

2001-09-06 Thread Axel Rose
Hello, currently I build a little Mac auto downloader using Net::FTP. First - an extreme acceleration happened after using MacPerl 5.6.1a5 compared to 5.20r4. There is a problem though in Net::Cmd.pm. SIGPIPE must be commented. This is scheduled in the MacPerl Bug list. Another problem arises

[MacPerl] Net::FTP and jpegs

2001-07-26 Thread Katherine Richmond
Hi everyone, I posted a question yesterday about using ftp to send a jpeg to a server. I also asked about the comment field of the file. First I would like to find out why a jpeg becomes corrupted when it is ftped. I am running the ftp perl script on a Mac and sending the jpeg to another Mac runn

[MacPerl] Net::FTP

2001-07-06 Thread Katherine Richmond
Hi again - I had to go to http://pudge.net/macperl/ and get the latest MacPerl. Now FTP.pm is in lib/net, and all is well. Thank you. Now to actually do something with it! -Kathy

[MacPerl] Net::FTP

2001-07-06 Thread Katherine Richmond
--- Chris Nandor wrote: You can use Net::FTP. It comes with MacPerl. --- end of quote --- I looked in lib/Net and there is no ftp.pm. Is this a new module? If I have to go to cpan to get it, are there special instructions for installing? Thanks, Kathy

[MacPerl] Net::FTP

2001-07-06 Thread Katherine Richmond
I tried a syntax check on this code just to make sure I am doing this correctly, and got an error. #!perl -w use Net::FTP; -- # Can't locate Net/FTP.pm in @INC. File 'Katarina:Desktop Folder:getCerner.pl'; Line 3 # BEGIN failed--compilation aborted. File 'Katarina:D

Re: [MacPerl] Net::FTP mdtm() puzzler

2001-02-04 Thread robinmcf
Rich Lafferty <[EMAIL PROTECTED] wrote: >$File_Modified_time is a scalar, thus localtime() is called in scalar >context. >print() takes a list, so localtime() is called in list context. Thanks for clearing that up for me Rich - I thought I was going crazy :)

Re: [MacPerl] Net::FTP mdtm() puzzler

2001-02-04 Thread Rich Lafferty
On Mon, Feb 05, 2001 at 03:13:59AM +0900, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > > I'm puzzled by the output of this script: > why is '$flag' gibberish and '$File_Modified_time' isn't? It's not gibberish -- it's just not what you expected. Here's why: > $flag=$ftp->mdtm('index.html');

[MacPerl] Net::FTP mdtm() puzzler

2001-02-04 Thread robinmcf
I'm puzzled by the output of this script: why is '$flag' gibberish and '$File_Modified_time' isn't? script follows=== #! perl -w use strict; use diagnostics-verbose; use Net::FTP; my($ftp,$flag,$File_Modified_time); $ftp = Net::FTP->new("your.site.com"); # server name $ftp->login("logi

Re: [MacPerl] Net::FTP usage

2001-01-31 Thread Nicholas G. Thornton
But the bottom line is you just ship the file(handle) off as a whole, yes? -- ~nikc [ http://www.phreelance.net/ ] [ [EMAIL PROTECTED] ] [EMAIL PROTECTED] is deprecated

Re: [MacPerl] Net::FTP usage

2001-01-31 Thread Scott R. Godin
on 01/31/2001 07:46 AM, Chris Nandor at [EMAIL PROTECTED] wrote: >> Now, I see no reason why you NEED to open a filehandle in order to send a >> file, when you could simply do something like: > > But it still bears noting how to do it. To pass a filehandle, you use > something like \*FILE, whic

Re: [MacPerl] Net::FTP usage

2001-01-31 Thread Chris Nandor
At 00:31 -0500 01.31.2001, Scott R. Godin wrote: >Now, I see no reason why you NEED to open a filehandle in order to send a >file, when you could simply do something like: But it still bears noting how to do it. To pass a filehandle, you use something like \*FILE, which passes a reference to it.

Re: [MacPerl] Net::FTP usage

2001-01-30 Thread Scott R. Godin
on 01/30/2001 11:46 PM, Nicholas G. Thornton at [EMAIL PROTECTED] wrote: > --- "Scott R. Godin" wrote: > print $Net::FTP::VERSION; > --- end of quote --- > It's v 2.56 . I'm not quite sure how you mean I got it backwards. The code at > present is something like . . . ok you're about as current a

Re: [MacPerl] Net::FTP usage

2001-01-30 Thread Nicholas G. Thornton
--- "Scott R. Godin" wrote: print $Net::FTP::VERSION; --- end of quote --- It's v 2.56 . I'm not quite sure how you mean I got it backwards. The code at present is something like . . . open(FH, '>temp'); # access the' temp' file print FH $foo; # write to 'temp' close FH; And I can't quite figure

Re: [MacPerl] Net::FTP usage

2001-01-30 Thread Scott R. Godin
on 01/30/2001 06:56 PM, Nicholas G. Thornton at [EMAIL PROTECTED] wrote: > Net::FTP says you can ->put(FILEHANDLE, $destination) But how exactly do you > go > about it? > > open(FILE, '>temp'); > $ftp->put(FILE, $destination); > > doesn't work. I assume it's one of the | things, but I know too

[MacPerl] Net::FTP usage

2001-01-30 Thread Nicholas G. Thornton
Net::FTP says you can ->put(FILEHANDLE, $destination) But how exactly do you go about it? open(FILE, '>temp'); $ftp->put(FILE, $destination); doesn't work. I assume it's one of the | things, but I know too little about how filehandles actually work -- ~nikc [ http://www.phreelance.net/ ] [ [EMA