in reply to Re: Re: Re: Re: Re: Re: Re: Problem using Net::FTP
in thread Problem using Net::FTP
on the top of the script.# log the whole process BEGIN { use CGI::Carp qw(carpout); my $errorlog = "/var/logs/log.txt"; open(LOG, ">$errorlog") or die("Unable to open $errorlog: $!\n"); print LOG "Errors:\n"; carpout(*LOG); }
it works and all files are moved, but I get in the log following error messages :............................................................ # move the file to the backup subfolder unless(move("$new", "/var/files/out/$subfolder_name")) { print STDERR "Oops! Couldn't move the file: $!"; } system("mv /var/files/info /var/files/out/$subfolder_name"); system("mv /var/logs/log.txt /var/files/out/$subfolder_name"); ............................................................
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Re: x 8) Problem using Net::FTP
by jarich (Curate) on Mar 31, 2004 at 01:30 UTC | |
by cc (Beadle) on Apr 22, 2004 at 17:26 UTC | |
by jarich (Curate) on May 10, 2004 at 05:06 UTC | |
by cc (Beadle) on Jun 15, 2004 at 19:17 UTC |