wait [pid|job-id …]
tcsh shell: wait
wait waits for one or more jobs or child processes to complete in the background. If you specify one or more job-id arguments, wait waits for all processes in each job to end. If you specify pid, wait waits for the child process with that process ID (PID) to end. 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 process IDs known to the invoking shell to complete.
In the tcsh shell, the shell waits for all background jobs. If the shell is interactive, an interrupt disrupts the wait and cause the shell to print the names and job numbers of all outstanding jobs. See tcsh — Invoke a C shell.
See Localization for more information.
wait is a built-in shell command.
If one or more arguments (pid or job-id) are specified, the exit status of wait is the exit status of the last argument.
POSIX.2, X/Open Portability Guide, UNIX systems.
sleep, tcsh