in reply to Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
#!perl use strict; use warnings; use Net::FTP; use Net::DownloadMirror; use constant HOST => 'ftp.cpan.org'; use constant REMOTE => '/pub/xemacs-www/Download/'; use constant LOCAL => '/root/Desktop/local'; use constant USER => 'anonymous'; use constant PASS => '-anonymous@'; my $ftp = Net::DownloadMirror->new( ftpserver => HOST, user => USER, pass => PASS, debug => 1, localdir => LOCAL, remotedir => REMOTE, ); $ftp->Download();
|
|---|