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 and return its exit status:
wait
- Wait for all processes known to the invoking shell to finish:
wait
- Wait for one of the processes to finish:
wait -n
- Wait for one of the processes to finish and store its PID in a variable:
wait -n -p
- Wait for a job to finish (run
jobsto find the job number):
wait %
- Display help:
wait --help
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
