in reply to Re: Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
in thread Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
Thanksuse strict; use warnings; use Net::FTP; use Net::Netrc; my $ftp; $ftp = Net::FTP->new ("100.200.100.200", Timeout => 9000, Debug => 3) or die "Cannot connect to some.host.name: $@"; $ftp->login("abc",'def') or die "Cannot login ", $ftp->message; $ftp->cwd("/test") or die "Cannot change working directory ", $ftp->message; $ftp->get("original.pl") or die "get failed ", $ftp->message; $ftp->quit;
|
|---|