I\'m trying to run 3 commands in parallel in bash shell:
$ (first command) & (second command) & (third command) & wait
The prob
This might work for you:
parallel -j3 --halt 2
This will run 3 commands in parallel.
If any running job fails it will kill the remaining running jobs and then stop, returning the exit code of the failing job.