philipp traeder wrote:

"perldoc Net::FTP" is your friend - there you'll find documentation for the put() method, which should be what you want.
Basically, you just need to extend your script a bit - something like:


my $ftp = Net::FTP->new(...);
$ftp->login("username", "password");

# change the working directory on the server
$ftp->cwd("dir/where/you/want/to/put/your/file");

$ftp->put("name/of/your/local/file");

$ftp->quit();

Many thanks Philipp.

The script now successfully launches two FTP sessions, but how exactly do I use put() to move a file from one of the sessions to the other?

Thanks,
Ed


-- 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