Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zargs parallelization support blows up with |&
- X-seq: zsh-workers 35927
- From: Dima Kogan <dima@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zargs parallelization support blows up with |&
- Date: Mon, 27 Jul 2015 02:36:36 -0700
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=qrtiyWVfgB6BTN7hpiwGYTZn8qc =; b=HJOHbCMIVxXY4Hc1tFU1Rm3pQbJdczs9kTDnWe0pZTpwuLzjh274DRCjlav xXOczZsS/sTSMd3Csb4RhU8giWO0DQOpZOdF3UBuivB5YMA5oUNFwmKjaN7Q1UZn W/68byuIjpIzJi89JkIWS/ZlCR72krX6emd5h/Zn901CcWFg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=qr tiyWVfgB6BTN7hpiwGYTZn8qc=; b=pz5+MEPMkEFRAgr9ylJMXH/89q06tp+I7v B4+y5S1n0BR6+B6lwxxVTpHHbCea4hhi+BeaeKYCbqHfRf/CVs5c/VojgA6EyK1n fEq/Em4/sLa5ND2WErN7mmnmOCwdVm2TU3WFYfLVsZ5NUlriM2HLP2Va2CumYUAT XRRlYljO4=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi. I can use this to invoke a perl script 10 times, 2 processes at a
time:
zargs -P2 -i -l1 `seq 10` -- perl -e 'sleep 20' {}
This works ok. However, when I do the same thing, but filter stdout and
stderr for some output, then ALL the processes are invoked at the same
time, not just 2 at a time like I asked:
zargs -P2 -i -l1 `seq 10` -- perl -e 'sleep 20' {} |& grep x
I don't know if this is a bug or an expected consequence of some
internal implementation details, but this is a really nasty failure
mode.
Thanks for looking.
dima
Messages sorted by:
Reverse Date,
Date,
Thread,
Author