in reply to need help with FTP script
# This is just like the section before the sleep, but it's aft +er $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3); $ftp or die "$server: cannot connect: $@"; # If you don't use ~/.netrc $ftp->login ($user,$password) or die "$_: cannot logon: " . $ftp->message; # change remote directory for the first file $ftp->cwd($destination); # # this is new my $found = grep /\Q$new\E/, $ftp->ls; if ($found) { die "The file is still there!\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need help with FTP script
by cc (Beadle) on Jun 11, 2004 at 12:33 UTC | |
by Roy Johnson (Monsignor) on Jun 11, 2004 at 15:00 UTC | |
by cc (Beadle) on Jun 12, 2004 at 09:34 UTC | |
by cc (Beadle) on Jun 15, 2004 at 21:58 UTC | |
by Roy Johnson (Monsignor) on Jun 15, 2004 at 22:06 UTC | |
by cc (Beadle) on Jun 15, 2004 at 23:21 UTC | |
|