-#!/usr/bin/expect -d
+#!/usr/bin/expect
log_user 0
set spawnid [spawn make oldconfig]
send "m\r"
exp_continue
}
+ -re "\n*(\[^\n]* \\\[N\/y\/m\/\\?] \\(NEW\\)) " {
+ puts "$expect_out(1,string) m"
+ send "m\r"
+ exp_continue
+ }
-re "\n *(\[^\n]* \\\[N\/m\/\\?] \\(NEW\\)) " {
puts "$expect_out(1,string) m"
send "m\r"