HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

wait — Wait for a process to complete before proceeding. See also: `ps`, `waitpid`. More information: <http

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbeforewaitprocessclicompletefor

Problem

How to use the wait command: Wait for a process to complete before proceeding. See also: ps, waitpid. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-wait>.

Solution

wait — Wait for a process to complete before proceeding. See also: ps, waitpid. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-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


Wait for a job to finish (run jobs to find the job number):
wait %{{job_number}}


Display help:
wait --help

Code Snippets

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

Wait for a job to finish (run `jobs` to find the job number)

wait %{{job_number}}

Display help

wait --help

Context

tldr-pages: common/wait

Revisions (0)

No revisions yet.