I have 2 commands which are to be run simultaneously. And I want the script to terminate if one of them either exits with code 0 or 1. How can I achieve this in Linux(Ubuntu)cmd1 &cmd2 &wait
How can I run two commands in parallel and terminate them if ONE of them terminates with exit code 0?
bash;shell script;exit;parallelism