wait

Wait for each specified process to complete and return its termination status.

Syntax
      wait [n ...]	

Key
   n   A process ID or a job specification

Each n may be a process ID or a job specification; if a job specification is given, all processes in that job's pipeline are waited for.

If n is not given, all currently active child processes are waited for, and the return status is zero.

If n specifies a non-existent process or job, the return status is 127. Otherwise, the return status is the exit status of the last process or job waited for.

wait is a bash built in command.

Example

$ wait 2585

“If you wait to do everything until you're sure it's right, you'll probably never do much of anything” - Win Borden

Related:

ps - Process status
lsof - List open files
Equivalent Windows command: WAITFOR - Wait for or send a signal



Back to the Top

© Copyright SS64.com 1999-2012
Some rights reserved