2025-03-14 21:59:59 -06:00
|
|
|
# wait
|
|
|
|
|
|
|
|
|
|
> Wait for a process to complete before proceeding.
|
2025-07-24 22:27:13 -06:00
|
|
|
> See also: `ps` to view information about running processes.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/wait>.
|
|
|
|
|
|
|
|
|
|
- Wait for a process to finish given its process ID (PID) and return its exit status:
|
|
|
|
|
|
|
|
|
|
`wait {{pid}}`
|
|
|
|
|
|
|
|
|
|
- Wait for all processes known to the invoking shell to finish:
|
|
|
|
|
|
|
|
|
|
`wait`
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Wait for a job to finish (run `jobs` to find the job number):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`wait %{{job_number}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`wait --help`
|