User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
linux:scripts:slide_show_from_email [2012/01/09 15:46]
linux:scripts:slide_show_from_email [2012/01/25 10:47] (current)
amon [Sub Processes]
Line 671: Line 671:
 done done
   ​   ​
 +To control the flow of a script and wait for sub processes to finish before continuing one can use the wait command (from the bash man page):
 +       wait [n ...]
 +              Wait  for each specified process and return its termination sta-
 +              tus.  Each n may be a process ID or a job  specification; ​ if  a
 +              job  spec  is  given, ​ all  processes in that jobâs pipeline are
 +              waited for.  If n is not given, all currently active child  pro-
 +              cesses ​ 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.
 </​code>​ </​code>​
linux/scripts/slide_show_from_email.txt · Last modified: 2012/01/25 10:47 by amon