Hi all,

I'm a newbie to Perl - I'm having to dip in and try and do some coding as I need a script that will move a file from one server to another. I believe this can be done with the Net::FTP object.

I've played around whit this a fair bit, and I think this script should work..


#!/usr/bin/perl print "Content-type: text/plain","\n\n";

use Net::FTP;
$ftp = Net::FTP->new("www.slbsu.org.uk", Debug => 0)
or die "Cannot connect to some.host.name: $@";

$ftp->login("username",'password')
or die "Cannot login ", $ftp->message;

$ftp->quit;



But it doesn't! If I upload that script as it is, it just returns a blank page with no errors, when I know that the username and password are wrong - so why does it not tell me?

Many thanks,
Ed Ludlow

PS If anyone fancies outlining how I'd code a script to transfer one file to another location, that would be much appreciated...:)


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to