Which you do.
What you need is to background the jobs, reap them, and then collect the return value when you reap them.
I'd do that by calling open twice, then calling waitpid twice and storing $?. (Yeah, it is a lot more complicated - but you are trying to keep straight a much more complicated situation.)
In reply to Re: multi-command sytem call
by tilly
in thread multi-command sytem call
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |