How to run a TCL script to tell run in every 10 minutes?
问题 My TCL script: source reboot_patch.tcl set a 1 while {$a < 10} { exec reboot_patch.tcl after 60000 incr a } I need to run "reboot_patch.tcl" script for every 1 min in my system. I wrote above script. But its running only once and its coming out. Following is the "reboot_patch.tcl" script: #!/usr/bin/tcl package require Expect spawn telnet 40.1.1.2 expect "*console." send "\r" expect "*ogin:" send "test\r" expect "*word:" send "test\r" expect "*>" send "clear log\r" expect "*#" send "commit \r