exp_continue . exp_continue , , , . . exp_continue timeout. , exp_continue -continue_timer.
expect 10 . , expect .
expect
expect "name"
"" , -. - timeout expect.
expect {
"name" {
timeout {
}
timeout, set, .
set timeout 60;
, ,
expect {
"Enter Password" {send "yourpassword\r"}
timeout {send -- {^[-}; exp_continue}
}
. . , escape + . ([) (-). , , "". . .
Escape .
send -- \033-;
\033? Escape. -, \033-. , ,
expect {
"Enter Password" {send "yourpassword\r"}
timeout {send -- \033-; exp_continue}
}
: Tcl wiki ASCII Char