From: Me Me Date: 2008-06-23T23:30:37+09:00 Subject: Timeout when reading from a pipe Hi, I would like to launch a process (external executable) and raise an exception if I cannot read any output from it on the stdout. Is that possible? Thanks in advance def execute_mencoder(command) IO.popen(command) do |pipe| pipe.each("\r") do |line| puts line end end raise MediaFormatException if $?.exitstatus != 0 end -- Posted via http://www.ruby-forum.com/.