in reply to net::ftp multiple files

Try this:
#!/usr/bin/perl use Net::FTP; foreach (<@ARGV>) { $ftp = Net::FTP->new("HOST", Debug => 0); $ftp->login("login","password"); $ftp->put($_); } $ftp->quit;
This will go thru the parameters given at the command line (like "./ftp.pl file1 file2 file3") and FTP them.
I am not sure if any of the Net::FTP functions will return the output from the FTP server...

Replies are listed 'Best First'.
Re: Re: net::ftp multiple files
by nkpgmartin (Sexton) on May 10, 2001 at 00:03 UTC
    This also says it's successful but the files do not appear on the remote machine.