MPE/iX Shell and Utilities Reference Manual, Vol 2
wait(1) MPE/iX Shell and Utilities wait(1)
NAME
wait — wait for process to complete
SYNOPSIS
wait [pidjob-id...]
DESCRIPTION
wait waits for the termination of one or more jobs or child processes in the background. If
you specify job-ids, wait waits for all processes in each job to terminate. If you specify a
pid, wait waits for the child process with that process
ID to terminate. If no child process has
that process ID, wait returns immediately.
If you specify neither a pid nor a job-id, wait waits for the termination of all process IDs
known to the invoking shell.
DIAGNOSTICS
If you specified a job-id which has terminated or is unknown by the invoking shell, an error
message and a return code of 127 is returned. If you specified a pid which has terminated or is
unknown to the shell, a return code of 127 is returned. If a signal terminated the process ab-
normally, the exit status is a value greater than 128 unique to that signal; otherwise, possible
exit statuses are:
0 Successful completion.
1-126 An error occurred.
127 A specified pid or job-id has terminated or is unknown by the invoking shell.
Messages
Because this utility is built into the
MPE/iX
Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
NOTE
This command is built into the shell.
MPE/iX NOTES
For information on how the current MPE/iX implementation may affect the operation of this
utility, see Appendix A, MPE/iX Implementation Considerations.
SEE ALSO
sleep(1)
Commands and Utilities 1-691