Hi all, having a little trouble with output...
Using pssh with the -I option to read commands from stdin. Only on Debian Squeeze hosts, the motd is (undesirably) included in the output. Not so for Debian Etch hosts (and any other OS I've tried)
$ echo "hostname" | pssh --inline-stdout -t 60 -H root@server1 -H root@server2 -I
[1] 17:18:24 [SUCCESS] root@server1
Hardware => Physical (X9SCL/X9SCM) (CPU: 8, MEM: 15.62 GB)
OS => Debian GNU/Linux 6.0.6 (squeeze) (Kernel: 3.2.2-hw2)
server1
[2] 17:18:25 [SUCCESS] root@server2
server2
Doesn't happen without -I (and I assure you server2 does have a motd)
$ pssh --inline-stdout -t 60 -H root@server1 -H root@server2 "hostname"
[1] 17:18:48 [SUCCESS] root@server1
server1
[2] 17:18:48 [SUCCESS] root@server2
server2
Any suggestions/workarounds? Should I file a bug report? I have no idea what's different about Squeeze, but I've reproduced this on several hosts.
thanks,
Jonathan