Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
"be consistent"
 
PerlMonks  

Re^5: SSH to remote subsystem (Net::OpenSSH?)

by salva (Monsignor)
on Mar 20, 2013 at 15:24 UTC ( #1024542=note: print w/ replies, xml ) Need Help??


in reply to Re^4: SSH to remote subsystem (Net::OpenSSH?)
in thread SSH to remote subsystem (Net::OpenSSH?)

You have to close the input and output pipes before calling waitpid:

... close $in; close $out; waitpid($pid, 0);


Comment on Re^5: SSH to remote subsystem (Net::OpenSSH?)
Select or Download Code
Re^6: SSH to remote subsystem (Net::OpenSSH?)
by sojourner9 (Initiate) on Mar 20, 2013 at 15:39 UTC

    That got it! Thanks!

    It's working perfectly now using the large block of code posted above with the addition of those two closes.

    The rest of this will just be the grunt work of turning the replies into useable formats for other tools.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-04-23 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (554 votes), past polls