Re: TCL script issue

From: WorkerBee (ciscobee@gmail.com)
Date: Sat Dec 02 2006 - 08:33:46 ART


Try this instead.

foreach i {

1.1.1.1
2.2.2.2

} { puts [ exec " ping $i repeat 2 ] }

On 12/2/06, wannabe <mark.rushby@gmail.com> wrote:
> Hi All
>
> I have an issue with using tclsh on a 2600 running
> c2600-jsx-mz.123-14.T2.bin ios. The tcl script (below) is accept by the
> router and there is a long delay as if the router was sparsing the commands
> but there is no output.
>
> Do I need to add an additional command or is there a bug in the ios?
>
> thanks in advance
>
> Mark
>
> foreach i {
> 150.1.1.1
> 183.1.17.1
> 183.1.123.1
> 150.1.2.2
> 183.1.2.2
> 183.1.123.2
> 150.1.3.3
> 204.12.1.3
> 183.1.123.3
> 183.1.0.3
> 183.1.23.3
> 183.1.45.4
> 183.1.0.4
> 183.1.46.4
> 150.1.5.5
> 183.1.58.5
> 183.1.0.5
> 183.1.45.5
> 150.1.6.6
> 183.1.46.6
> 54.1.1.6
> 183.1.6.6
> 183.1.17.7
> 183.1.78.7
> 150.1.8.8
> 183.1.78.8
> 183.1.58.8
> 192.10.1.8
> } { ping $i repeat 2 }
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:36 ART