Waiting on background tasks

Kenneth P. Turvey kt-usenet at squeakydolphin.com
Mon Apr 10 05:40:39 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This question isn't really Ubuntu specific, but it applies to Ubuntu.  

Is there a way to start a number of background tasks and then wait for
them all to complete?  That is I would like something like this:

longtask arg1 &
longtask arg2 &
longtask arg3 &
waitforalltasks
#do the next thing

Thanks.

- -- 
Kenneth P. Turvey <kt-usenet at squeakydolphin.com>

XMPP  IM: kpturvey at jabber.org
Yahoo IM: kpturvey2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEOe/Oi2ZgbrTULjoRAoNcAJ0Wjj7XxrV1JnxN+t4BRdebB43xAACgrkvT
AVeg6cfZExEKa1+tl5j5dQs=
=1vxr
-----END PGP SIGNATURE-----






More information about the ubuntu-users mailing list