expect <<HEREDOC
spawn some long command;
expect {
"some text 1" {
set timeout -1;
send "some input\r";
exp_continue;
}
"some text 2" {
set timeout -1;
send "some input\r";
exp_continue;
}
"some text 3" {
set timeout -1;
send "some input\r";
exp_continue;
}
}
HEREDOC
No comments:
Post a Comment