From: Humphrey Widjaja (h4w301@gmail.com)
Date: Sun May 27 2007 - 19:26:17 ART
Try to use procedure:
tclsh
! Start of TCL
proc hum {} {
foreach ip {
8.8.1.1
8.8.2.2
8.8.3.3
8.8.4.4
8.8.5.5
8.8.6.6
8.8.7.7
8.8.8.8
} {ping $ip}
}
! to execute:
hum
! End of TCL
CMIIW ...
Hum the Benedict
* Just another beginner *
On 5/27/07, Du, Jianbo <jdu@ebay.com> wrote:
> HI GS,
>
> I am a very junior TCL learner. Would anyone teach me how to reuse TCL
> script? Every time I put below into tclsh environment, it would run very
> well but seems only in tcl schell. Can I save them into somewhere and
> reuse in later time when I am doing CCIE lab?
This archive was generated by hypermail 2.1.4 : Fri Jun 01 2007 - 06:55:22 ART