bulent_sahin has asked for the wisdom of the Perl Monks concerning the following question:
======================================================== #!/usr/bin/perl -w use strict; use warnings; use Net::FTP; use Net::Telnet (); sub ftpnd { my $host = $_[0]; my $Fusername = "XXXXX"; my $Fpasswd = "yyyyyy"; my $ftpobj = Net::FTP -> new ($host, Debug => 0, Timeout => 240) or di +e "Cannot connect $@"; $ftpobj -> login($Fusername,$Fpasswd) or die "Cannot Login ",$ftpobj-> +message; ; $ftpobj -> cwd ("ftpvol/relfsw2"); $ftpobj -> binary; my @Flist = $ftpobj->ls("*"); foreach my $file (@Flist) { $ftpobj->get($file) or die "can't get file: $!"; } $ftpobj -> quit; return; } ftpnd("10.202.14.130"); } =========================================================
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP Timeout problem from Windows NT machine...
by nemo (Sexton) on Aug 20, 2007 at 12:58 UTC | |
|
Re: Net::FTP Timeout problem from Windows NT machine...
by syphilis (Archbishop) on Aug 20, 2007 at 13:06 UTC | |
by roboticus (Chancellor) on Aug 20, 2007 at 23:11 UTC | |
by syphilis (Archbishop) on Aug 21, 2007 at 00:09 UTC | |
by bulent_sahin (Initiate) on Aug 27, 2007 at 21:42 UTC | |
|
Re: Net::FTP Timeout problem from Windows NT machine...
by rpanman (Scribe) on Aug 20, 2007 at 17:09 UTC | |
by Anonymous Monk on Jun 20, 2012 at 13:28 UTC |