is there a way in shell scripts (primarily bash) to background some tasks 
and then wait for them to complete before doing another command?

I've got a nightly log analysis run that has lots of things in the form 
(greatly simplified for explination)

cat $LOGS |tool1 >report1
cat $LOGS |tool2 >report2
cat $LOGS |tool3 >report3


followed by a section at the end that calls a script that does

head report1 >>e-mail
head report2 >>e-mail
head report3 >>e-mail

it would speed things up drasticly if I could do the report generation in 
parallel, but I need a way to be sure that they have all completed before 
generating the final e-mail.

David Lang
_______________________________________________
Discuss mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/discuss
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to