tcl scripts on Doc-Cd

From: ccie2be (ccie2be@nyc.rr.com)
Date: Wed May 18 2005 - 10:25:31 GMT-3


Hi guys,
 
Being that I don't trust my memory, is basic tcl scripting documented
anywhere on the Doc-cd?
 
Also, I was playing around with tcl scripts yesterday and noticed some
strange things.
 
If I had a syntax error, for example, a needed space was needed or missing
and as a result the script bombed, correcting the script didn't seem to
help.
 
What I had to do was exit tcl, re-enter tcl and re-enter the script from
scratch. Is there a better way to go?
 
I also noticed that having or missing spaces could cause problems. As I
know zilch about tcl except for what's been posted on GS and some public
write-ups from various lab prep vendors, could someone offer some guidelines
on where spaces are required or forbidden in a basic ping script?
 
The script I was using was similar to the following:
 
tclsh
foreach address {
158.7.1.1
158.7.123.1
150.7.1.1
158.7.26.2
158.7.123.2
150.7.2.2
158.7.38.3
158.7.37.3
158.7.123.3
158.7.0.3
150.7.3.3
192.10.7.4}{ping $address}
 
In the above script, I would very appreciate if someone could point out
where spaces belong or don't belong.
 
TIA, Tim



This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:58 GMT-3