Wait: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 10: Line 10:
=Overview=
=Overview=


  wait [n]
  wait [''jobspec''|''pid'']


Wait for the specified process and report its termination status. If n is not given, all currently active child processes are waited for,  and the return code is zero.  n may be a process ID or a job specification; if a job spec is given, all processes in the job's pipeline are waited for.
Wait until the process specified by ''pid'' or ''jobspec'' exits. Return the exit status of the last command waited for. If a jobspec is given, all processes in the job's pipeline are waited for.
 
If no arguments are given, all currently active child processes are waited for,  and the return code is zero.

Latest revision as of 23:20, 9 October 2019

External

Internal

Overview

wait [jobspec|pid]

Wait until the process specified by pid or jobspec exits. Return the exit status of the last command waited for. If a jobspec is given, all processes in the job's pipeline are waited for.

If no arguments are given, all currently active child processes are waited for, and the return code is zero.