Re:GNU Parallel 2018
by ravoori on Saturday August 17, 2019 @06:58PM
(#20726977)
xargs does nothing to prevent interleaving of output from simultaneously executed commands.
[ Parent
| on HN ]
I suspect that's intended behavior. But if I'm understanding correctly, I think you could account for it with something like-
... | xargs -P10 -i sh -c 'command {} 1>{}.out 2>{}.err'
or maybe with tee:
... | xargs -P10 -i sh -c 'command {} | tee -a {}.out'
Re:GNU Parallel 2018
by mechanical_jane on Sunday August 18, 2019 @04:59AM
(#20729080)
It would require your input not to have any special shell chars - e.g. no space.
It is definitely not something I would dare to run in production.
Re:GNU Parallel 2018
by waterhouse on Saturday August 17, 2019 @07:16PM
(#20727053)
Yes. I use parallel if I need coherent output; otherwise I use xargs (which is significantly faster).