Conditional execution and parallel jobs

how can i process jobs parallel with conditions below.

Script1.ksh
Script2.ksh
Script3.ksh
Script4.ksh
Script5.ksh
Script6.ksh
Script7.ksh
Script8.ksh
Script9.ksh
Script10.ksh

After successful completion of Script1.ksh I need to run Script7.ksh.
After successful completion of Script7.ksh I need to run Script8,9,10...
Script2,3,4,5,6 should run parallel and has no conditions..

you can use wait PID( for the last background job) to wait for its successful completion of the last background job and then run the next job.

cheers,
Devaraj Takhellambam

Thanks for your reply.
If jobs run through cron how do we handle this Situation?

You may need to program to capture the PID of the last run script
something like

pid=`ps -ef  | grep "lastscriptname"| awk '{print $2}'`

cheers,
Devaraj Takhellambam

man wait

/../Script1.ksh
wait $?
...