Skip to content

Instantly share code, notes, and snippets.

@orther
Created April 9, 2014 09:04
Show Gist options
  • Save orther/10244699 to your computer and use it in GitHub Desktop.
Save orther/10244699 to your computer and use it in GitHub Desktop.
Linux jobs command for parallel processing
# 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