Thanks for the detailed analysis and step by step walk through.
I tried the way you have advised. However, this time my error file says that "/sbin/sh: system: not found". Below is the code I tried,
-------- #a.pl #!/usr/bin/perl system('ls -lrt > a.out'); -------- Comand $ at -f /tmp/a.pl now commands will be executed using /sbin/sh job 1323397408.a at Fri Dec 9 13:23:28 2011 Error: /sbin/sh: system: not found
I am wondering why the external system command is not recognized in the perl.
Any thoughts my friend. When the perl script is executed with "At" command, it invokes a shell to execute the script. However, that shell is unable to recoginse the system command. Is that correct??
Please let me know what else I can try to resolve this issue.
Thanks In Advance
In reply to Re^2: system command is not working
by gulla
in thread system command is not working
by gulla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |