From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22250 invoked from network); 13 Oct 1999 15:29:26 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Oct 1999 15:29:26 -0000 Received: (qmail 19477 invoked by alias); 13 Oct 1999 15:29:01 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2680 Received: (qmail 19447 invoked from network); 13 Oct 1999 15:28:55 -0000 X-Authentication-Warning: divine.city.tvnet.hu: szaka owned process doing -bs Date: Wed, 13 Oct 1999 17:32:34 +0200 (MEST) From: Szabolcs Szakacsits X-Sender: szaka@divine.city.tvnet.hu To: zsh-users@sunsite.auc.dk Subject: Re: Running N jobs from M all the time In-Reply-To: <991012155901.ZM9091@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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