Waiting on background tasks

Dennis Kaarsemaker dennis at kaarsemaker.net
Mon Apr 10 07:22:12 UTC 2006


On ma, 2006-04-10 at 00:40 -0500, Kenneth P. Turvey wrote:

> longtask arg1 &
PID1=$!
> longtask arg2 &
PID2=$!
> longtask arg3 &
PID3=$!

wait $PID1
wait $PID2
wait $PID3
-- 
Dennis K.
 - Linux for human beings - http://www.ubuntu.com
 - Linux voor iedereen - http://www.ubuntu-nl.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060410/8b51c096/attachment.sig>


More information about the ubuntu-users mailing list