Wait: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
=Internal=
=Internal=


* [[Bash#Built-In_Commands|bash]]
* [[Linux#Commands|Linux]]
* [[Linux#Commands|Linux]]


=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.