From: Me Me Date: 2008-06-28T20:14:18+09:00 Subject: Re: Timeout when reading from a pipe Hi, still on the subject I'm trying to understand if under Windows I can emit and trap custom signals from two processes. It should be something like this: open("|-", "r") do |child| if child child.each("\n") do |line| puts line # emit signal end child.close else exec("ls", "-l") # trap signal checking a timeout # if signal not received for more than 10 secs close child\ # and go on end end Is there a way to implement what specified in the commented lines? Thanks in advance -- Posted via http://www.ruby-forum.com/.