June 2004
Intermediate to advanced
1056 pages
39h 58m
English
wait
wait [ID]Pause in execution until all background jobs complete (exit status 0
will be returned), or until the specified background PID or job ID
completes (exit status of ID is returned).
Note that the shell variable $! contains the PID of the most recent
background process. If job control is not in effect,
ID can only be a PID number. See Section 20.6.
wait $! Wait for last background process to finishRead now
Unlock full access