Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Every time I run this $res = -1 and I have no idea why.my $cmd="dostuff.ksh"; my $res = system $cmd; if ($res != 0) { print "Job has failed\n"; }
Since I'm not backgrounding the command or doing anything other than would I would deem to be a straightforward system call it's baffling me why this is returning -1.$unx1: ./dokshstuff $unx1: echo $? 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system return -1
by ikegami (Patriarch) on Oct 22, 2010 at 15:17 UTC | |
by Anonymous Monk on Oct 25, 2010 at 10:53 UTC | |
by ikegami (Patriarch) on Oct 25, 2010 at 14:23 UTC | |
|
Re: system return -1
by Anonymous Monk on Oct 22, 2010 at 14:18 UTC | |
by Anonymous Monk on Oct 22, 2010 at 14:20 UTC |