wait

NAME

wait - Windows command-line utility to wait for the termination of processes or jobs

SYNOPSIS

wait {pid... | -j jobname...}

DESCRIPTION

The wait(1w) Windows utility waits for the completion of processes or jobs. If a list of process identifiers is given, wait waits until all of them have terminated. If a list of job names is given, wait waits until all the processes belonging to those jobs have terminated.

OPTIONS

The wait utility supports the following option:

-j
Interprets all operands as job names. The -j option is valid only for Windows 2000.

ARGUMENTS

The wait utility supports the following argument:

pid
The unique identifier of a process for which the wait utility has to wait.
jobname
The wait utility waits for the completion of all processes belonging to the job specified by jobname.

DIAGNOSTICS

The exit status returned by the wait utility will be the exit status of the process requested by the last pid operand.

The other possible exit-status values are:

126
The wait utility detected an error.
127
The command identified by the last specified pid operand is unknown.

NOTES

SEE ALSO

kill(1w)

ps(1w)

top(1w)

sleep(1w)