Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

ksh(1)

sh(1)

wait(2)

wait(1)

NAME

wait − await completion of process

SYNOPSIS

wait [ n ]

DESCRIPTION

Wait for your background process whose process ID is n and report its termination status.  If n is omitted, all your shell’s currently active background processes are waited for and the return code will be zero. 

The shell itself executes wait, without creating a new process.  The n parameter is not allowed when using csh(1). 

SEE ALSO

csh(1), ksh(1), sh(1). 
wait(2) in the CX/UX Programmer’s Reference Manual. 

NOTES

If at any time during your session you get the error message cannot fork, too many processes, try using the wait command to clean up your background processes.  If this doesn’t help, the system process table is probably full or you have too many active foreground processes.  (There is a limit to the number of process IDs associated with your login, and to the number the system can keep track of.) 

Not all the processes of a 3- or more-stage pipeline are children of the shell, and thus cannot be waited for. 

If n is not an active process ID, all your shell’s currently active background processes are waited for and the return code will be zero. 

CX/UX User’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026