Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 (Monsignor) 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 romping around the Monastery: (12)
As of 2014-10-01 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (22 votes), past polls