Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://597119]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2018-03-24 11:11 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (298 votes). Check out past polls.