pdsh ran with remote command

66 views
Skip to first unread message

viswanath kasi

unread,
Mar 6, 2012, 8:20:14 AM3/6/12
to pdsh-users
Hi,

Suppose i run a command on a remote host using pdsh with ssh rcmd
module. Can i get the corresponding socket descriptor with which ssh
ran the command by establishing connection ? I need that socket
descriptor for my project work. If not directly is there any other
means by which i can get?

Thanks,
Kasi.

Mark Grondona

unread,
Mar 7, 2012, 9:31:56 AM3/7/12
to pdsh-...@googlegroups.com, viswanath kasi
Kasi:

The file descriptor use by pdsh in the ssh rcmd module is from essentially a popen(3)
to the ssh(1) command itself, so there is no direct socket connection to the remote
host in pdsh itself.

I'm not exactly sure what your project work needs to do, but perhaps you can just
fork/exec ssh yourself, or check out libssh2 (http://www.libssh2.org/) if you need an
API for the ssh protocol.

BTW, the pdsh google group isn't quite active yet, there aren't any subscribers besides
me, which is why it took me a day to see this message. My apologies.

I hope this helps,
mark
Reply all
Reply to author
Forward
0 new messages