wait(1) CLIX wait(1)
NAME
wait - Waits for the completion of a process
SYNOPSIS
wait [n]
DESCRIPTION
The wait command waits for your background process with a process ID of n
and reports the termination status of that process. If the n parameter is
omitted, the wait command waits for all of your shell's currently active
background processes.
The shell itself executes wait, without creating a new process.
EXAMPLES
To wait for the process with a pid of 75, enter:
wait 75
CAUTIONS
The wait command waits only on processes that are children of the shell
and thus does not wait on the processes of a 3 or more stage pipeline.
DIAGNOSTICS
Cannot fork, too many processes
Try using the wait command to clean up your background processes.
If this does not help, the system process table is probably full or
you have too many active foreground processes. (The system puts a
limit on the number of process IDs associated with your login, and
the total for the system).
EXIT VALUES
The wait command exits with a value of 0 after waiting on active process
IDs.
RELATED INFORMATION
Commands: sh(1)
2/94 - Intergraph Corporation 1