in reply to Re^3: need help with FTP script
in thread need help with FTP script
and I don't get any errors....................................................................... +... # check if the first file is still there my $found = grep /\Q$new\E/, $ftp->ls; if ($found) { die "The file is still there !\n" and next; { # send mail if transfer not completed open(MAIL, "|/usr/sbin/sendmail -t") || die "Cant send mail. Reason: +$!"; print MAIL "from:$sender\n"; print MAIL "to:$recipient\n"; print MAIL "subject: transfer was not completed !\n"; print MAIL "transfer of second file failed ! \n"; print MAIL "Time: ", scalar localtime, "\n"; close(MAIL); } } #quit FTP when finished $ftp->quit; ...................................................................... +...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: need help with FTP script
by Roy Johnson (Monsignor) on Jun 15, 2004 at 22:06 UTC | |
by cc (Beadle) on Jun 15, 2004 at 23:21 UTC | |
by cc (Beadle) on Jun 16, 2004 at 16:03 UTC |