the exit code is stored in the variable $?.
Richard Clarke wrote:
> I know this is slightly off topic, but could someone tell me how I can
> retrieve the exit code from a unix program and store it into a shell
> variable
>
> Richard
>
> --
> Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /
*- On 2 Nov, Richard Clarke wrote about "exitcodes"
> I know this is slightly off topic, but could someone tell me how I can
> retrieve the exit code from a unix program and store it into a shell
> variable
>
In most shells the exit code of the previous command it stored
I know this is slightly off topic, but could someone tell me how I can
retrieve the exit code from a unix program and store it into a shell
variable
Richard
3 matches
Mail list logo