sarshads has asked for the wisdom of the Perl Monks concerning the following question:
Thanks.use strict; use warnings; use Net::FTP; use Net::Netrc; my $remote_cwd = "/test"; my $local_cwd="C:"; my $server="100.200.100.100"; my $ftpid = "abc"; my $pass = "def"; my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3); $ftp->login("$ftpid","$pass"); $ftp->cwd($remote_cwd); my @files = $ftp->ls($remote_cwd); for (@files) { $ftp->get($_) if -f $_; print "\n".$_; } $ftp->quit;
Regards
Syed Arshad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
by JavaFan (Canon) on Oct 05, 2010 at 11:05 UTC | |
|
Re: Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
by kcott (Archbishop) on Oct 05, 2010 at 13:09 UTC | |
by sarshads (Novice) on Oct 05, 2010 at 13:38 UTC | |
|
Re: Want to Copy files from remote machine(Solaris) to Local Machine(Windows) using FTP::Net
by Khen1950fx (Canon) on Oct 05, 2010 at 17:49 UTC |