GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
RE: TCL script [7:84481] posted 02/17/2004
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


Why can't you ps to find it and then kill its PID?

alaerte Vidali wrote:
> 
> I am wondering if there is a way to stop a TCL script after
> running it.
> 
> Here is a sample:
> 
> tclsh
> foreach router {
> 172.16.101.1
> 172.16.102.1
> } {
> set hostname [rsh $router show run | include hostname]
> puts "\n"
> puts "\n"
> puts "****************"
> puts "Changing to ROUTER $hostname"
> puts "****"
> foreach address {
> 172.16.123.3
> 172.16.103.1
> } {
> puts $hostname
> puts $address
> rsh $router ping $address
> }
> }
> 
> 
> Is there any way to stop it besides waiting it to reach the end?
> **Please support GroupStudy by purchasing from the GroupStudy
> Store:
> http://shop.groupstudy.com
> FAQ, list archives, and subscription info:
> http://www.groupstudy.com/list/cisco.html
> 
> 




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=84512&t=84481
--------------------------------------------------
**Please support GroupStudy by purchasing from the GroupStudy Store:
http://shop.groupstudy.com
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html