From: Robert Klemme Date: 2010-01-08T02:50:05+09:00 Subject: Re: How to create a pipe file ("mkfifo pipe_file") On 01/07/2010 06:19 PM, Iñaki Baz Castillo wrote: > El Jueves, 7 de Enero de 2010, Iñaki Baz Castillo escribió: >> Hi, I don't find the appropriate command to create a "pipe" file in Ruby. >> Which is the command to behave as system "mkfifo pipe_file"? > > By the way, is it better to use a pipe_file or a UNIX socket? both are IO > objects but, is there any advantage in using some of them? It depends on your usage model: if you need to know every individual client then you need to use a socket. If you just can read message after message from wherever it came you can use a named pipe. Also, IIRC a named pipe signals EOF once a writer has closed its end. So both have a quite different usage model... Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/