Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: SSH2 - Asynchronous Opens & Synchronous Commands

by Theodore (Scribe)
on Apr 04, 2014 at 11:30 UTC ( #1081110=note: print w/ replies, xml ) Need Help??


in reply to SSH2 - Asynchronous Opens & Synchronous Commands

The parent/childs solution seems elegant and interesting. A child for each device, opening the ssh connection and then receiving instructions and sending results through an IPC message queue. You could parse the commands' output in the childs' code and use a simple protocol to communicate with the parent.


Comment on Re: SSH2 - Asynchronous Opens & Synchronous Commands
Re^2: SSH2 - Asynchronous Opens & Synchronous Commands
by 5haun (Sexton) on Apr 04, 2014 at 11:54 UTC

    We may end up having to do something like that, but the requirement is for the output parsing to be done by the caller:

    caller test script => framework library => ssh module => remote shell => remote command => output => ssh module => framework library => caller test script

    Thanks for the input.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081110]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-12-23 01:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls