print "=$filename==$localpath/archives/=\n";
system('mv', "'$filename'", "'$localpath/archives/'") or Die ("data
+load","YTSMSC","High","Could not move file: $filename for succ
essful exit: $@");
Running the code I got complaints from mv, but the or didn't kick in. but the files didn't move, wither. I did an ls with a cut and paste of one of the file names to proven that part is sound.
[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(11): ./t.pl
>/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200200<>/home/
+reports/ftp/YTSMSC50/test/archives/<
mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.
+0507200200'
>/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200215<>/home/
+reports/ftp/YTSMSC50/test/archives/<
mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.
+0507200215'
>/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230<>/home/
+reports/ftp/YTSMSC50/test/archives/<
mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.
+0507200230'
>/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200245<>/home/
+reports/ftp/YTSMSC50/test/archives/<
mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.
+0507200245'
[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(12): ls
archives sav2.pl SMSC_COU
+NTERS_SMSC.0507200230
errors SMSC_COUNTERS_SMSC.0507200200 SMSC_COU
+NTERS_SMSC.0507200245
sav1.pl SMSC_COUNTERS_SMSC.0507200215 t.pl
[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(13): ls /home/repor
+ts/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230
/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230
[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(14): ls -l /home/re
+ports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230
-rw-r--r-- 1 reports staff 47472 Aug 12 12:08 /home/reports/ft
+p/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230
[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(15):
Crazy Uncle Jimbus says, "Never moon a werewolf!"
|