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)
In reply to Re: Problem in System function
by jeffa
in thread Problem in System function
by rakesh1377
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |