home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: until Chapter 4
The Bourne Shell and Korn Shell
Next: Reference: whence
 

wait



wait

 [

ID

]

Pause in execution until all background jobs complete (exit status 0 will be returned), or pause until the specified background process ID or job ID completes (exit status of ID is returned). Note that the shell variable $! contains the process ID of the most recent background process. If job control is not in effect, ID can be only a process ID number. See "Job Control."

Example

wait $!	
Wait for last background process to finish.


Previous: Reference: until UNIX in a Nutshell: System V Edition Next: Reference: whence
Reference: until Book Index Reference: whence

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System