running multiple scripts

Hi all I have a requirement where I have a flow like

            Script1                        

script2 Script3 Script 4 Script 5 Script 6

                 script7            

where script2 to script6 will running simultaneoulsy

After the completion of script1 I have to run 5 scripts in parallel ..only after the completion of these 5 scripts I have to run the script7.

For this, I have this script

Script1

Script2 &

Script3 &

Script4 &

Script5 &

Script6 &

Script7

But this one after executing the script1 executing the remaining all the scripts simultaneously. I want the script7 to be run after the completion of the all the previous scripts��any help regarding this???

Script1
# Now run five in background
Script2 &
...
Script6 &
# wait for all background tasks to complete
wait
# Now run script 7
Script7

Cheers
ZB

For most of the scripts I prefer the following way of handling the scripts ( or rather controlling them ... kick-off / stop )

have a control file in which with the pid of the script after successful or failed completion should leave the message with error code in the control file.

Based on the values in the control file next script ( script 7 ) should be triggered

This gives more control, because in some cases, when running ' n ' scripts the ouput might be dependant on some ' m ' scripts ( where m < n or m / 2 <= n )

Just a suggestion !

Thanks zazzybob..its workin