wait - Wait for process completion
Synopsis
wait [ job ... ]
Description
You can use wait to wait for the specified
jobs to end. If job is not specified,
qsh waits for all child processes to end.
Options
None.
Operands
Each job specifies an active job. The job can be
specified as a:
- Number to refer to a process id. qsh waits for
the given process to end.
- %number to refer to a job number. qsh waits
for all processes in the job to end.
- %string to refer to a job whose name begins with string.
qsh waits for all processes in the job to
end.
Exit Status
When no job was specified, the exit status is:
- 0 when all running jobs have ended.
- >0 when unsuccessful.
When at least one job was specified, the exit status is
the exit status of the last job.
Related information
Examples
- Wait for process id 16825 to end: wait
16825
- Wait for job number 5 to end: wait %5