2016-05-23 15:46:41 -04:00
|
|
|
# wait
|
|
|
|
|
|
|
|
> Wait for a process to complete before proceeding.
|
2025-06-14 16:02:15 +00:00
|
|
|
> See also: `ps` to view information about running processes.
|
2022-03-01 00:52:41 -03:00
|
|
|
> More information: <https://manned.org/wait>.
|
2016-05-23 15:46:41 -04:00
|
|
|
|
2016-08-09 10:58:49 +01:00
|
|
|
- Wait for a process to finish given its process ID (PID) and return its exit status:
|
2016-05-23 15:46:41 -04:00
|
|
|
|
|
|
|
`wait {{pid}}`
|
|
|
|
|
|
|
|
- Wait for all processes known to the invoking shell to finish:
|
|
|
|
|
|
|
|
`wait`
|
2024-10-12 08:49:27 +03:00
|
|
|
|
2025-06-14 16:02:15 +00:00
|
|
|
- Wait for a job to finish (run `jobs` to find the job number):
|
2024-10-12 08:49:27 +03:00
|
|
|
|
2025-03-27 15:53:12 +00:00
|
|
|
`wait %{{job_number}}`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`wait --help`
|