Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Running N jobs from M all the time
- X-seq: zsh-users 2680
- From: Szabolcs Szakacsits <szaka@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Running N jobs from M all the time
- Date: Wed, 13 Oct 1999 17:32:34 +0200 (MEST)
- In-reply-to: <991012155901.ZM9091@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
On Tue, 12 Oct 1999, Bart Schaefer wrote:
> On Oct 12, 6:38am, Szabolcs Szakacsits wrote:
> } Subject: Running N jobs from M all the time
> }
> } My question would be there is an easy way for $SUBJECT?
>
> If I'm understanding you correctly, you want to do something like
>
> repeat 1000 do
> if (( number_of_jobs >= number_of_processors )); then
> wait $any_job
> fi
> command &
> done
Yes and thanks for the answer and run_parallel function. In brief
what and how I'd really like to see is e.g.
for i in * PARALLEL N ; do job $i ; done
Would it be very difficult to add these kind of feature? This would
always work when I'll do an
[anyshell] zsh
[zsh :)]
on any machine and no matter what zsh functions/extensions are
installed/configured.
Szaka
Messages sorted by:
Reverse Date,
Date,
Thread,
Author