Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

Replies are listed 'Best First'.
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 about the Monastery: (6)
As of 2016-06-30 01:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.