Break out of TCL script ?

From: Emir trhulj (skimad@gmail.com)
Date: Thu May 11 2006 - 10:41:00 ART


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