Hello,
I want to do start some jobs in parallel in my script (bash) and return an error code after the end of all process. I want return an error code set to 1 if one of them failed.
How can i retrieve the error code of each process ?
Because with the wait command i've only the error code of the last process if i do:
wait $pid1 $pid2 $pidx
Some idea ?
Thanks for help
I want to do start some jobs in parallel in my script (bash) and return an error code after the end of all process. I want return an error code set to 1 if one of them failed.
How can i retrieve the error code of each process ?
Because with the wait command i've only the error code of the last process if i do:
wait $pid1 $pid2 $pidx
Some idea ?
Thanks for help