Created
April 9, 2014 09:04
-
-
Save orther/10244699 to your computer and use it in GitHub Desktop.
Linux jobs command for parallel processing
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
# Wait on all child jobs. | |
function wait_jobs () { | |
for PID in $(jobs -p); do | |
notice "Waiting on pid $PID" | |
wait $PID | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment