Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: How do I stop SSH Module from dieing?

by RobPayne (Chaplain)
on Jan 29, 2007 at 16:40 UTC ( #597119=note: print w/replies, xml ) Need Help??


in reply to How do I stop SSH Module from dieing?

You haven't stated whether the code is dying on all routers, or only those that are only available via telnet. If it is the latter, you might try the telnet connection first as a workaround until you get resolution on the other issue. As another poster has suggested, it is wise to also wrap the connection code in an eval so you can "catch" the error which is occuring and handle it appropriately.
  • Comment on Re: How do I stop SSH Module from dieing?

Replies are listed 'Best First'.
Re^2: How do I stop SSH Module from dieing?
by Smith (Initiate) on Jan 29, 2007 at 20:19 UTC
    The error that is occuring is, cant connect to port 22 when it hits a telnet router, which is fine. The problem is it dies at that point instead of going to the next line, which is my if statement to use the telnet login. If I reverse it and do Telnet first, the same thing occurs when it hits the first SSH router. Ill look into the eval suggestion. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://597119]
help
Chatterbox?
[Corion]: Hmm - not exactly like the ROLLUP command. Ah well.
[hippo]: Make it an option?
[Corion]: hippo: Yes, but I'm not sure that it's even worth the effort of implementing it at all...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-02-23 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.