Are you checking for failure as outlined in the docs for system (perldoc -f system)?
system("mv $file_name $different_path/$file_name"); if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\n", ($? & 127), ($? & 128) ? 'with' : 'without'; } else { printf "child exited with value %d\n", $? >> 8; }
In reply to Re: unix mv command
by derby
in thread unix mv command
by xmanamit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |