Skip to content

Instantly share code, notes, and snippets.

@joakin
Created August 12, 2019 11:15
Show Gist options
  • Save joakin/65915d777bf99a632575d136371eaf7c to your computer and use it in GitHub Desktop.
Save joakin/65915d777bf99a632575d136371eaf7c to your computer and use it in GitHub Desktop.
Parallel killable bash jobs
#!/bin/bash
trap "exit" INT TERM ERR
trap "kill 0" EXIT
./someProcessA &
./someProcessB &
wait
@joakin
Copy link
Author

joakin commented Aug 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment