Date created: Thursday, August 14, 2014 10:39:45 AM. Last modified: Wednesday, December 2, 2020 6:03:32 PM

Repeat Command X Times

pe1.dc1#tclsh
pe1.dc1(tcl)#for {set x 0} {$x<240} {incr x} {
+>   after 60000
+>   puts [exec "show ver | i uptime"]
+>}
pe1.dc1 uptime is 32 minutes

pe1.dc1 uptime is 33 minutes

pe1.dc1 uptime is 34 minutes

pe1.dc1 uptime is 35 minutes

pe1.dc1 uptime is 36 minutes