commands:builtin:wait

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:builtin:wait [2018/07/12 07:36]
thebonsai
commands:builtin:wait [2020/06/28 06:56] (current)
thebonsai [Table]
Line 2: Line 2:
  
 ===== Synopsis ===== ===== Synopsis =====
-<​code>​wait [-f] [-n] [ID...]</​code>​+<​code>​wait [-f] [-n] [-p VARNAME] [ID...]</​code>​
  
 ===== Description ===== ===== Description =====
Line 17: Line 17:
 ==== Options ==== ==== Options ====
  
-^Option^Description^ +^ Option ​         ^ Description ​                                                                                                                       
-|''​-n'' ​ |Waits for "the next" child to exit (as opposed to "all children"​ without this option) | +| ''​-n'' ​         | Waits for "the next" child to exit (as opposed to "all children"​ without this option). Accepts a list of IDs (jobs) ​               ​
-|''​-f'' ​ |Waits for the termination of the given ''​ID''​ (instead of waiting for a status change only) |+| ''​-f'' ​         | Waits for the termination of the given ''​ID''​ (instead of waiting for a status change only)                                        | 
 +| ''​-p VARNAME'' ​ | When waiting for a list (-n) or all jobs, writes the job ID to the job that was actually terminated into the variable ''​VARNAME''  ​|
  
 ==== Return status ==== ==== Return status ====
  • commands/builtin/wait.1531380994.txt
  • Last modified: 2018/07/12 07:36
  • by thebonsai