From: Javier Fontan Date: 2002-01-09T00:07:59+09:00 Subject: Child_changed with PTY Hello, I've been playing with pty, expect and Expecter (from Matz) but now I allwais get the same error (Child_changed). If I print something after a string is catched (by expect) it crashes there, and if not crashes in expect code. Could be my ruby version? ruby 1.6.2 (2000-12-25) [i386-linux-gnu] The script: --8<--------------- require 'expecter' require 'pty' exp=Expecter.new(2) $lero=false exp.on("dir") { $lero=true } PTY.spawn("ls") { |hR, hW| hR.sync=true exp.wait(hR) } pust "cosa" if $lero --------------->8-- The output --8<--------------- [jfontan@pc3d ruby]$ ./responde2.rb clustal.rb dir.rb responde2.rb scan.rb telnez.rb~ ./expecter.rb:15:in `select': Child_changed: 16106 (RuntimeError) from ./expecter.rb:15:in `wait' from ./responde2.rb:20 from ./responde2.rb:16:in `spawn' from ./responde2.rb:16 --------------->8-- Bye -- Javier Fontan Mui�os jfontan@cesga.es CESGA, Supercomputing Center of Galicia