Using this script, when I execute it, it stops at Erasing VLAN Database and sits there until I hit enter again, then it finishes the script and reloads the device. Thoughts on why?
tclsh
puts [open "flash:reset.tcl" w+] {
puts "Erasing Configuration"
typeahead "\r"
puts [ exec "write erase" ]
puts "Erasing VLAN Database"
typeahead "\r"
puts [ exec "del flash:vlan.dat" ]
puts "Copying Base Configuration To Startup"
typeahead "\r"
puts [ exec "copy flash:baseline.cfg nvram:startup-config" ]
puts "Reloading The Device"
typeahead "\r"
puts [ exec "reload" ]
}