in reply to Re: system command is not working
in thread system command is not working
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: system command is not working
by choroba (Cardinal) on Dec 09, 2011 at 02:47 UTC | |
by gulla (Initiate) on Dec 09, 2011 at 03:33 UTC | |
by jffry (Hermit) on Dec 09, 2011 at 18:30 UTC | |
by Anonymous Monk on Dec 09, 2011 at 04:58 UTC |