On 5/3/12 2:49 PM, Colin McEwan wrote:
> What I would really *like* would be an extension to the shell which
> implements the same sort of parallelism-limiting / 'process pooling' found
> in make or 'parallel' via an operator in the shell language, similar to '&'
> which has semantics of *possibly* continuing asynchronously (like '&') if
> system resources allow, or waiting for the process to complete (';').
I think the combination of asynchronous jobs and `wait' provides most of
what you need. The already-posted alternatives look like a good start to a
general solution.
If those aren't general enough, how would you specify the behavior of a
shell primitive -- operator or builtin -- that does what you want?
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/