Martin DeMello wrote:
> Can you post your script? I believe the point of expect is to just
> keep accepting input till it gets the "expected" value - try entering
> the right string after you enter the wrong one. Here's a sample
> interaction with expect - I'm assuming ruby expect follows the same
> behaviour:
> 
> martin@dabba ~ $ cat hi.exp
> set timeout -1
> expect "hello world\n"
> send "we get signal!\n"
> 
> martin@dabba ~ $ expect hi.exp
> how are you gentlemen?
> somebody set up us the bomb
> move zig!!!!!!
> hello world
> we get signal!
> 
> martin@dabba ~ $
> 
> martin

There's no way to enter the correct Expect string since it hangs.  Also,
don't even think of using RExpect.  "RExpect is better than you'd
expect" my ass.

-- 
Posted via http://www.ruby-forum.com/.