This is an old revision of the document!

The wait builtin command

wait [ID]

The wait builtin command is used to

  • wait for a specific job (asynchronous command) and report its exit status if the ID is given
  • wait for all running jobs (asynchronous commands)

There are no options.

The return status is the return status of the job waited for, or

Status Reason
0 waited for all jobs in shell's job list
1 the given ID is not a valid job or process ID
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
You could leave a comment if you were logged in.
  • commands/builtin/wait.1350754604.txt
  • Last modified: 2012/10/20 17:36
  • by thebonsai