Is your main problem that you're not sure where the child process's status ends up once wait returns? The docs say it ends up in $?.
In reply to Re: How to optionally kill a child, and capture status if not killed.
by mr_mischief
in thread How to optionally kill a child, and capture status if not killed.
by joelr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |