snippetbashTip
wait — Wait for a process to complete before proceeding. See also: `ps`, `waitpid`. More information: <http
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:
waitWait for a job to finish (run
jobs to find the job number):wait %{{job_number}}Display help:
wait --helpCode 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
waitWait for a job to finish (run `jobs` to find the job number)
wait %{{job_number}}Display help
wait --helpContext
tldr-pages: common/wait
Revisions (0)
No revisions yet.