Say I have the following bash script:
#!/usr/bin/env bash process-1& process-2& process-3&
I have two questions:
- how can I check at the end of my script that all processes exited with an exit code of 0 ?
- how can my script "wait" until all launched processes have finished and then do a concluding
echo(perhaps informing the user of the exit codes)?