![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: SSH2 - Asynchronous Opens & Synchronous Commandsby Theodore (Friar) |
on Apr 04, 2014 at 11:30 UTC ( #1081110=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|