From: Chris Date: 2002-04-24T11:56:12+09:00 Subject: Re: Data available on a pipe? 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