shell - How wait the end of N process in ksh and after run another process? -


i want run 3 process @ same time , when 3 process finished want run process.

for example:

./script1.sh & ./script2.sh &

wait script1 , script2 finished , after run ./script3

thanks help

man ksh

        wait [ job ... ]               wait specified job , report   termination  status.               if  job  not given, active child processes               waited for. 

so, e. g.

./script1.sh& ./script2.sh& ./script3.sh wait ./script4.sh 

will long there no other active child process.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -