Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Multi-core loops
- X-seq: zsh-users 14594
- From: Kazuo Teramoto <kaz.rag@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Multi-core loops
- Date: Sun, 22 Nov 2009 22:34:54 -0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=T06z4BonVM43B02HCoFimmqMsHjgOKJjswNOyME9Zd4=; b=iUOH1zNeeBsramxl6h25iQp/mzuUNoSKvirBcEO7ErymdaQoC1nmtZzDdwHmX+AMC+ PKm7C67vy4zEzxJ1Mz2uA+T+bO76sMAZ6KXfwCqeNAP//IZ7UZCeBdud8T+kPOqM9Jcu /rtiV86+Ul8azXWy5OOfpOXfrB4i3LbZqPYEs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MTjNKrxANKXMONZYLylpoZKVbAomTqA8ZR6zzbEkfAPCPT8RGKHfZea2qe1dWVqNfa DawPrm/Zc46b5xqVdRDW3FeA2Qc28lQBgnd+dTHzpbgfvXpoUO/ZUBS6dloxwXw8g5Wb FQ4X+6g3X078ejamFvWeGt+QTJ/n2Yaid2hRA=
- In-reply-to: <237967ef0911221440u66a3b80dqcaa0717670397a9f@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20090628103129.GA15270@xxxxxxxxxxxxxxxxxxxxxxxxxx> <5992e17f0911221305j53522ed6j55d8b1308fda2214@xxxxxxxxxxxxxx> <20091122221655.GA28699@xxxxxxxxxxxxxxxxxxxxxxxxxx> <237967ef0911221440u66a3b80dqcaa0717670397a9f@xxxxxxxxxxxxxx>
I'm using a workaround in python (this is the smallest "solution" I could get)
--------------------------------------------------------------------
from multiprocessing import Pool
from glob import glob
from subprocess import call
def f(x):
call(['echo','asy', '-f', 'png', '-render=0', x])
pool = Pool(processes=4)
pool.map(f, glob('*.asy'))
--------------------------------------------------------------------
But of course this solution dont integrate in zsh command line...
--
ÂDans la vie, rien n'est à craindre, tout est à comprendreÂ
Marie Sklodowska Curie.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author