May 20, 2009, 8:22 AM
Post #4 of 4
Re: [hem] Telnet in background
[In reply to]
Here's a link to the thread (disclosure: k2pa wrote the original script: I just tweaked it) http://perlguru.com/gforum.cgi?post=38182;#38182.
As pointed out in the thread, I prefer Net::SSH::Perl to Net::Telnet for issuing and monitoring remote commands.
Doing an asynchronous command execution, waiting asynchronously, and getting back the execution status and stdout/stderr of the remote command (as opposed to the ssh call itself) is a tricky business. I've done it in various ways in the past, but I was never completely satisfied with my results. I googled "perl asynchronous remote command" and came up with this thread at perl monks http://www.perlmonks.org/?node_id=692673. This might be a good place to start.
(This post was edited by 1arryb on May 20, 2009, 1:36 PM)