Re: utter newbie expect question
- From: Artis Gripemore <wealtheow1@xxxxxxxxx>
- Date: 29 May 2007 12:44:27 -0700
This is the error message I get. I don't see the typo, but I assume
that it is there. Any ideas? Thanks again.
wrong # args: should be "send ignore arg"
while executing
"send " " "
invoked from within
"expect -nobrace {<SPACE> to continue} {send " " ; exp_continue}
{Choose one (X,Y,Z} {send -- "y"}"
invoked from within
"expect {
"<SPACE> to continue" {send " " ; exp_continue}
"Choose one (X,Y,Z" {send -- "y"}
}"
On May 29, 2:51 pm, Mark Janssen <mpc.jans...@xxxxxxxxx> wrote:
On May 29, 8:40 pm, Artis Gripemore <wealthe...@xxxxxxxxx> wrote:
Thanks very much! I suppose if I put a ;return after the send -- "y"
that I could break out of this, if I had more script to run after the
match on X, Y, Z?
"(X, Y, Z" {send -- "y" ;return}
Otherwise, it would continue with the next expect statement anyway,
once it timed out, correct?
No, by default the expect command will normally return after a match,
a timeout or a eof has occured. It's the exp_continue in the other
case that will keep on running the expect command so a return is not
necessary. See alsohttp://www.tcl.tk/man/expect5.31/expect.1.html
Mark
.
- Follow-Ups:
- Re: utter newbie expect question
- From: Mark Janssen
- Re: utter newbie expect question
- References:
- utter newbie expect question
- From: Artis Gripemore
- Re: utter newbie expect question
- From: Mark Janssen
- Re: utter newbie expect question
- From: Artis Gripemore
- Re: utter newbie expect question
- From: Mark Janssen
- utter newbie expect question
- Prev by Date: Re: utter newbie expect question
- Next by Date: Re: Seeking a rich text editing widget
- Previous by thread: Re: utter newbie expect question
- Next by thread: Re: utter newbie expect question
- Index(es):
Relevant Pages
|