Parallel shell scripts.
nicky at valuecare.nl
Wed Nov 8 10:07:14 UTC 2006
This might be a bit off topic, but can't find anything really useful
when searching the internet. So i hope someone can point me in the right
I have to start 2 processes in the background (running in parallel),
capture their return codes and after all 4 have completed successfully i
want to continue with the main script.
Sofar i have this (below), however is this the proper way to do it?
for PID in $PIDLIST; do
echo "Job $PID exited with status $rc"
if [ $rc -ne 0 ]; then
**** the rest of the main script ****
More information about the freebsd-questions