gulla has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I have strange problem with the system command in my perl script.
I have a perl script with system command in the file a.pl
e.g:
#!/usr/bin/perl
system("ls -lrt > a.out");
If I execute the script directly, as ./a.pl, it displays the result. However, if invoke the script with "at" command, it doesnt turn up. I mean it wouldnt generate the output file.
I executed the command like this
#at -f /tmp/a.pl now
Please let me know where it could go wrong..
Thanks In Advance,
Thanks,
Gulla
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: system command is not working
by Anonymous Monk on Dec 07, 2011 at 03:31 UTC | |
Re: system command is not working
by ikegami (Patriarch) on Dec 07, 2011 at 04:23 UTC | |
Re: system command is not working
by vinian (Beadle) on Dec 07, 2011 at 05:55 UTC | |
by gulla (Initiate) on Dec 07, 2011 at 06:14 UTC | |
by Anonymous Monk on Dec 07, 2011 at 07:11 UTC | |
by pvaldes (Chaplain) on Dec 07, 2011 at 19:31 UTC | |
Re: system command is not working
by jffry (Hermit) on Dec 07, 2011 at 22:32 UTC | |
by gulla (Initiate) on Dec 07, 2011 at 23:25 UTC | |
by jffry (Hermit) on Dec 08, 2011 at 15:05 UTC | |
Re: system command is not working
by jffry (Hermit) on Dec 08, 2011 at 15:13 UTC | |
by Anonymous Monk on Dec 08, 2011 at 15:20 UTC | |
by gulla (Initiate) on Dec 09, 2011 at 02:31 UTC | |
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 |
Back to
Seekers of Perl Wisdom