How to get return codes of KSH jobs running in background?

From: mtb 247 (mtb247@hotmail.com)
Date: Tue Aug 16 2005 - 16:17:06 EDT


I have a ksh script and I am running many jobs in the background at once
(about 10 at a time).
How can I get the exit status return code of those jobs in the background
after the jobs finish?

Here is a sample of my code:
PID_DIR=/tmp/PIDS
for X in $FILE
do
eval $X &
PID=$!
# add new pid to list.
touch $PID_DIR/$PID
done

TIA Gurus!

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar  get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:19 EDT