The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-10-2009
anand_msm anand_msm is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 4
Job Execution in Parallel and Maintain Dependency

All,

We need to run multiple jobs in parallel with the dependencies intact.

I was trying to use the same with &, but in vain. Is there is any other way to resolve this issue.



I need to run
Set1
A.sh
B.sh
C.sh


Set2
D.sh
E.sh


Set3
F.sh
G.sh


Jobs Parallely

When Set1 Completes I need to run the below Set4 irrespective of other sets

Set4
AA.sh
BB.sh


When set2 completes I need to run below Set 5 irrespective of other sets

Set 5
CC.sh


When set3 completed I need to run below Set 6 irrespective of other sets

Set6
DD.sh


Once Set 4, 5, 6 completes I need to run set7

Set7
final.sh


How can I make this parallel and set the dependency also?

any help is appreciated.

Regards
Anand M