ParallelSSH / parallel-ssh

Asynchronous parallel SSH client library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
1.2k stars 149 forks source link

parallel-ssh sometimes redirects stdout to stderr #380

Open PPPW opened 1 year ago

PPPW commented 1 year ago

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.