Thanks , I had looked at $? but did not get the expected answers from it
and asumed I was doing somthing wrong.
But using
$exit_value = $? >> 8;
Does just the job.
Thanks
Matt
In reply to Re: Re: How to Trap exit code from system calls
by emjga1
in thread How to Trap exit code from system calls
by emjga1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |