timeout 10000000000 set count 1 send "^M" loop: expect "Hit any key to stop autoboot:" print "start\n" send "^M" send "reset^M" inc count print "count value $(count) \n" if count < 100000 goto loop print " finished run 100000 test circule"