How to print stdout & stderr of failed job in GNU parallel?

Viewed 239

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?

1 Answers
Related