Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Net::OpenSSH How do I orrectly close the connection?

by Skeeve (Vicar)
on May 09, 2011 at 06:16 UTC ( #903706=perlquestion: print w/ replies, xml ) Need Help??
Skeeve has asked for the wisdom of the Perl Monks concerning the following question:

Hi!

I just skimmed through the perldoc of Net::OpenSSH but couldn't find how to close the connection established with

my $ssh= Net::OpenSSH->new($myhost);
There seems to be no "close" methode. Can someone please enlighten me? Do I simply send an "exit" or "logout" command?


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Comment on Net::OpenSSH How do I orrectly close the connection?
Select or Download Code
Re: Net::OpenSSH How do I orrectly close the connection?
by salva (Abbot) on May 09, 2011 at 06:50 UTC
    undef $ssh

Log In?
Username:
Password:

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

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

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





    Results (183 votes), past polls