bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallelism a la make -j <n> / GNU parallel


From: Andreas Schwab
Subject: Re: Parallelism a la make -j <n> / GNU parallel
Date: Fri, 04 May 2012 19:46:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)

Mike Frysinger <address@hidden> writes:

> i wish there was a way to use `wait` that didn't block until all the pids 
> returned.  maybe a dedicated option, or a shopt to enable this, or a new 
> command.
>
> for example, if i launched 10 jobs in the background, i usually want to wait 
> for the first one to exit so i can queue up another one, not wait for all of 
> them.

If you set -m you can trap on SIGCHLD while waiting.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]