Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Do and Die

by jimbus (Friar)
on Aug 15, 2005 at 19:10 UTC ( #483953=note: print w/ replies, xml ) Need Help??


in reply to Re: Do and Die
in thread Do and Die

I tried the following to test for spaces and try your suggestion:

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!"


Comment on Re^2: Do and Die
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-11-27 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (190 votes), past polls