wait

Format:

wait process ID 

This means wait until process ID has finished before carrying on, or wait until all background processes have finished before carrying on.

To wait until process ID has finished before carrying on with the script or task:

					$ wait 1299
				

Wait until all background processes have finished:

					$ wait
				

Get Linux and Unix Shell Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.