Great tips.
The key was to wait for either process to finish in the parent, and to use "exec" instead of "system" to not consume the status read by "$?". Before that, I could not get "$?" to reflect the status.
I will update the example for any future searches.
In reply to Re^2: How to optionally kill a child, and capture status if not killed.
by joelr
in thread How to optionally kill a child, and capture status if not killed.
by joelr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |