parallel-ssh icon indicating copy to clipboard operation
parallel-ssh copied to clipboard

parallel-ssh sometimes redirects stdout to stderr

Open PPPW opened this issue 2 years ago • 0 comments

For general questions please use the mail group.

Describe the bug parallel-ssh sometimes redirects stdout to stderr in the output.

To Reproduce Create a "hostfile" and an example script:

#!/bin/bash
set -ex
echo "Example"

Copy the files to all hosts, then run:

parallel-ssh -i -v -h ~/hostfile bash ~/example.sh 

Expected behavior Nothing is printed to stderr.

Actual behaviour We got something in stderr:

[1] 13:52:24 [SUCCESS] host1
Example
Stderr: + echo Example
...

Additional information This is just one example, we have a few other cases where the stdout of the scripts are redirected to stderr of the parallel-ssh output.

PPPW avatar Jun 01 '23 13:06 PPPW