So you want to look into the output to see it the word
auto occurs, and if it doesn't occur, then a failure should be indicated?
Something like:
Code:
expect {
-re ".*auto.*\r" {puts success\n; exp_continue}
timeout abort
}
I suggest also that you put
exp_internal 1 at the start of your script. Once you start debugging regular expressions you want to see what is going on.
jlinkels
PS: No idea why the
thumbs down icon is in th eheader of my post. Not intentional.