Created
August 12, 2019 11:15
-
-
Save joakin/65915d777bf99a632575d136371eaf7c to your computer and use it in GitHub Desktop.
Parallel killable bash jobs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap "exit" INT TERM ERR | |
trap "kill 0" EXIT | |
./someProcessA & | |
./someProcessB & | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://spin.atomicobject.com/2017/08/24/start-stop-bash-background-process/