From: David Corbin Date: 2002-04-24T20:12:19+09:00 Subject: Re: Data available on a pipe? Chris wrote: >In article <3CC5CAAD.2090707@imperitek.com>, > David Corbin wrote: > >>I have a pipe. I would like to read data ( preferably lines) from this >>pipe, as long as there is data (a line) availble. I definatively do not >>wish to block on this. What's "the ruby way" to do this? >> > >handle = File::popen "some_pipe", "r" >handle.readline ># or... >handle.readlines > so readline doesn't block? If there is no line on the pipe, it returns immediately?