From: Christian von Mueffling Date: 2003-03-25T01:53:59+09:00 Subject: Re: pb with pty & expect Hi! On Mon, Mar 24, 2003 at 08:16:53PM +0900, Cedric Foll wrote: > /usr/lib/ruby/1.6/expect.rb:13:in `select': Child_changed: 308 (RuntimeError) [...] I had the same problem. The solution was, to shield the call to expect and retry once: retried = false begin output = @pty_read.expect( @prompt, timeout ) rescue if !retried retried = true retry else raise end end (maybe this should be enhanced by specifying the exceptions for that a retry should be made). -- chris