>Thanks, I will try this method. Everone,Have a good weekend!

Maggie
===== Original Message From "Maggie  Xiao" <mxiao / ee.ualberta.ca> =====
>----- Original Message -----
>From: <nobu.nokada / softhome.net>
>To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
>Sent: Friday, July 12, 2002 12:19 PM
>Subject: Re: new to ruby,how to make FIFO in ruby?
>
>
>> Hi,
>>
>> At Fri, 12 Jul 2002 23:18:36 +0900,
>> Maggie Xiao wrote:
>> > >Thanks,but if I want to create a fifo file in pure ruby way, I mean
>don't
>> > need to call "mkfifo",anyone can tell me how to handle it ?Thanks.
>>
>> Try syscall.
>> http://www.ruby-lang.org/en/raa-list.rhtml?name=syscall
>>
>>   require 'syscall'
>>   require 'sys/stat'
>>   class File
>>     def self.mkfifo(path, mode = 0666)
>>       Syscall.mknod(path, Stat::IFIFO|mode, 0)
>>     end
>>   end
>>   File.mkfifo("/tmp/foo")
>>
>> --
>> Nobu Nakada
>>