RE: Break out of TCL script ?

From: Curt Girardin (curt.girardin@chicos.com)
Date: Thu May 11 2006 - 12:54:53 ART


I've had a similar problem in my home lab before - I went to another
router or switch in the lab, telnetted to the router that's choking on
the TCL script, and typed in something like "clear line 0", which should
be the console line. If memory serves me correctly, it cleared the
console line for me and my problem went away.

HTH,

Curt

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Emir trhulj
Sent: Thursday, May 11, 2006 9:41 AM
To: ccielab@groupstudy.com
Subject: Break out of TCL script ?

Hello,

Does anyone know how to break out of TCL script that has been run but
there is some error with it.

Ie..

tclsh
foreach p {
157.1.148.1
150.1.1.1
157.1.123.1
} {puts [exec "rsh 150.1.7.7 ping $p "]}

"150.1.7.7" is an incorrect ip and the script will run until everything
eventually times out.

% Connection refused by remote host

% Connection refused by remote host

% Connection refused by remote host

It takes quite sometime unitl it times out and I can't figure out how to
break the process.

Hope someone can help.

Emir



This archive was generated by hypermail 2.1.4 : Thu Jun 01 2006 - 06:33:21 ART