From: ara.t.howard@... Date: 2006-11-17T23:45:36+09:00 Subject: Re: Reading from a named pipe On Fri, 17 Nov 2006, [utf-8] G端nther Gruber wrote: > Paul Lutus wrote: >>> How can I read from one? >> >> Open it like a file. > > Sounds simple, I'll try that out. Thanks! it's a bit tough sometimes. the reason is that, by default, a process will hang when opening a named pipe unless there is a process on the other end. this is by design and one has to use non-blocking io to avoid it, eg f = open 'named.pipe', File::RDWR|File::NONBLOCK something to be aware of... here's an example of some code which uses named pipes between a c program and ruby http://codeforpeople.com/lib/ruby/acgi/acgi-0.1.0/ regards. -a -- my religion is very simple. my religion is kindness. -- the dalai lama