I am executing a dsh command but it hangs and I found that the option "-M" (which prepends the machine name on std output) is actually creating the problem. Also, again running the same command over same machine works and does not hang. Can anyone explain this behavior.
Code:
$ dsh -m debian.local -c -M 'hostname'
debian.local: Warning: Permanently added 'debian.local,10.111.44.27' (ECDSA) to the list of known hosts.
root@debian.local's password:
debian.local: debian
[[Hangs here, no prompt comes and processes are still alive]]
Code:
$ ps aux | grep dsh
1000 12009 0.0 0.0 7844 1732 pts/7 S+ 10:34 0:00 dsh -m debian.local -c -M hostname
1000 12010 0.0 0.0 7852 92 pts/7 S+ 10:34 0:00 dsh -m debian.local -c -M hostname
1000 12011 0.0 0.0 7852 96 pts/7 S+ 10:34 0:00 dsh -m debian.local -c -M hostname
1000 12080 0.0 0.0 8036 2136 pts/8 S+ 10:38 0:00 grep dsh