Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if you do a normal ftp and get a file ftp usually shows this information
226 Transfer complete. local: file.DAT remote: file.DAT 92191338 bytes sent in 7.8 seconds (11475.52 Kbytes/s)
how can i get this information be recorded in ftp.log using MNet::FTP
perl >>ftp.log -MNet::FTP -e ' ( $host, $user, $pass ) = @ARGV; $ftp = Net::FTP->new($host) or die "$@\n"; $ftp->login( $user, $pass ) or die $ftp->message; $ftp->binary; @files = $ftp->ls; $ftp->get($_) for @files; $ftp->quit or die $ftp->message; ' <host> <user> <pass>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: higher info lever for MNet::FTP
by roboticus (Chancellor) on Jun 30, 2010 at 22:21 UTC | |
by Anonymous Monk on Jul 01, 2010 at 13:48 UTC | |
|
Re: higher info lever for MNet::FTP
by Khen1950fx (Canon) on Jul 01, 2010 at 06:13 UTC |