Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Forced to modify perl telnet script to use both telnet and ssh

by philiprbrenan (Monk)
on Sep 01, 2012 at 19:56 UTC ( #991190=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Forced to modify perl telnet script to use both telnet and ssh
in thread Forced to modify perl telnet script to use both telnet and ssh

Please go through your script adding statements like this:

if ($device->{supportsSSH}) {SSH code} else {Telnet code}

After a while you may notice that blocks of code keep getting repeated. Please consider refactoring them into sub {}'s as you work through your script.


Comment on Re^4: Forced to modify perl telnet script to use both telnet and ssh
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2014-07-30 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (234 votes), past polls