Re: Telnet Connection Handle???
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Telnet Connection Handle???

From: Don Libes <libes@nist.gov>
Date: Wed Dec 21 2005 - 20:57:52 CET

"Eric Lin" <h05558@gmail.com> writes:

> I was coding the Expect script to remotely control a linux host via
> Telnet. In some cases, the Telnet session wasn't successfully
> established that would cause the script broken. Can any one tell me how
> to deal with such situation?
>
> Regards
> Eric Lin

The simplest solution would be to add a pattern that matches what you
see when the session fails. Then exit, retry, or do whatever you feel
is appropriate.

Don
Received on Fri Dec 23 19:02:51 2005