orther
4/9/2014 - 9:04 AM

Linux jobs command for parallel processing

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
}