Re: Comments in TCL script

From: Radioactive Frog <pbhatkoti_at_gmail.com>
Date: Sun, 19 Dec 2010 11:34:59 +1100

try this:

foreach address {
187.1.17.1
187.1.134.1
150.1.1.1
} { ping $address re 3 }

!Begin Router 2 ips

foreach address2 {
204.12.1.2
187.1.235.2
150.1.2.2
} { ping $address2 re 3 }

!Begin Router 3 ips

foreach address3 {
187.1.3.3
187.1.38.3
187.1.134.3
187.1.235.3
150.1.3.3
} { ping $address3 re 3 }

On Sun, Dec 19, 2010 at 5:28 AM, Nathan Pease <pease.nathan_at_gmail.com>wrote:

> Does anyone know how to add comments in a TCL script? I would like to do
> something like the following, but my routers don't like it...
>
> foreach address {
> 187.1.17.1
> 187.1.134.1
> 150.1.1.1
> !Begin Router 2 ips
> 204.12.1.2
> 187.1.235.2
> 150.1.2.2
> !Begin Router 3 ips
> 187.1.3.3
> 187.1.38.3
> 187.1.134.3
> 187.1.235.3
> 150.1.3.3
> } { ping $address re 3 }
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Sun Dec 19 2010 - 11:34:59 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART