16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

vi<br />

Related Information<br />

ed, ex, fg, jobs, mesg, sed, talk, write<br />

For more information about regexp, see Appendix C.<br />

wait — Wait for a child process to end<br />

Format<br />

Description<br />

Localization<br />

Usage notes<br />

Exit Values<br />

wait [pid|job-id ...]<br />

tcsh shell: wait<br />

wait waits for one or more jobs or child processes to complete in the background. If<br />

you specify one or more job-id arguments, wait waits for all processes in each job<br />

to end. If you specify pid, wait waits for the child process with that process ID (PID)<br />

to end. If no child process has that process ID, wait returns immediately.<br />

If you specify neither a pid nor a job-id, wait waits for the process IDs known to the<br />

invoking shell to complete.<br />

wait in the tcsh shell<br />

The tcsh shell waits for all background jobs. If the shell is interactive, an interrupt<br />

will disrupt the wait and cause the shell to print the names and job numbers of all<br />

outstanding jobs. See “tcsh — Invoke a C shell” on page 626.<br />

wait uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

wait is a built-in shell command.<br />

If one or more arguments (pid or job-id) are specified, the exit status of wait is the<br />

exit status of the last argument.<br />

If you specified a job-id that has terminated or is unknown by the invoking shell, an<br />

error message and a return code of 127 is returned. If you specified a pid that has<br />

terminated or is unknown to the shell, a return code of 127 is returned. If a signal<br />

ended the process abnormally, the exit status is a value greater than 128 unique to<br />

that signal. Otherwise, possible exit status values are:<br />

0 Successful completion or wait was invoked with no arguments, and all child<br />

processes known to the invoking shell have completed.<br />

1–126 An error occurred<br />

127 A specified pid or job-id has terminated or is unknown by the invoking shell<br />

788 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!