I'm invoking GNU parallel on a bunch of commands using parallel --keep-order --line-buffer --halt 2
. Every once in a while one of the commands fails, and GNU parallel prints:
parallel: This job failed:
<failing command comes here>
Is there any way to to print the stdout and stderr of ONLY the failed job whenever this happens?