|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
NOTE: I cannot use the Net::FTP module, because I am not
allowed to download any software to this production system. How can I ensure the files are successfully ftp'ed to the $webserver prior to deleting the files? Thanks, David Here is my ftp & delete code: `ftp -i -n $webserver << 'EOF' user $username $passwd cd $destdir lcd $logdir mput @delFiles quit EOF`; foreach $delfile (@delFiles) { unlink $delfile || die "could not delete $delfile $!\n"; } |
|
#2
|
||||
|
||||
|
Net::FTP is a standard module. It should already be installed.
|
|
#3
|
|||
|
|||
|
I wish you were right.
The version of Solaris we have, comes with Perl 5.00503, which does not contain Net::FTP. Thanks |
|
#4
|
||||
|
||||
|
I guess you can just do a LIST and see if your file is there. If not, the transfer wasn't successful (although, that being the case, it probably should have been reported as a failure by the FTP server).
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Verify FTP success, prior to file deletion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|