One needs an -o in front of each space separated option entered, e.g.:

$ dsh -r ssh -o -i -o /root/.ssh/id_dsa_control -m somemachine -- uptime
$ dsh -r ssh -o -i/root/.ssh/id_dsa_control -m somemachine -- uptime
But not:
$ dsh -r ssh -o -i /root/.ssh/id_dsa_control -m somemachine -- uptime

I used strace:
$ strace -o attic/dsh.out -f dsh -r ssh -o -i -o /root/.ssh/id_dsa_control -m somemachine -- uptime
When the argv array gets populated correctly, we get:
execve("/usr/bin/ssh", ["ssh", "-i", "/root/.ssh/id_dsa_control", "somemachine", "uptime"], [/* 19 vars */]) = 0
But in the non-working example we get:
execve("/usr/bin/ssh", ["ssh", "-i /root/.ssh/id_dsa_control", "somemachine", "uptime"], [/* 19 vars */]) = 0

Thus, the dsh(1) man page must be taken literally as one option means 'up to a space'.
Feel free to close the 'bug'.

Thank you,
Virgil



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to