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] < /dev/null