From: Lee Donald (Lee.Donald@t-systems.co.uk)
Date: Wed May 18 2005 - 10:33:58 GMT-3
Tim,
This script works for me, I too don't know or care to know more about tcl
scripts...!!
tclsh
foreach address {
183.1.58.5
183.1.78.8
183.1.17.7
183.1.123.2
183.1.2.2
204.12.1.254
183.1.0.5
183.1.46.6
123.123.123.2
192.10.1.254
} {ping $address}
Regards
Lee.
-----Original Message-----
From: ccie2be [mailto:ccie2be@nyc.rr.com]
Sent: 18 May 2005 14:26
To: Group Study
Subject: tcl scripts on Doc-Cd
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