in reply to Problem in System function
It has been over a year since i last delt with system call return values, but if my memory server me correct, you need to right shift the status return. When i last coded this, i wrote a forking server that retrieved exit codes via the $? variable:
Using a little one liner, we can quickly see what 256 >> 8 is:my $status = $? >> 8;
Which yields 1 -- looks to me as if your invoked program is indeed returning a non zero return code. Are you also capturing STDERR?perl -le'print 256 >> 8'
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem in System function
by rakesh1377 (Novice) on May 25, 2004 at 13:46 UTC | |
by jeffa (Bishop) on May 25, 2004 at 13:49 UTC | |
by exussum0 (Vicar) on May 25, 2004 at 14:33 UTC |