Meng_Ted
(Meng, Ted)
1
Hi,
From Unix command line, I did this
mkfifo fifo
readProgram fifo &
writeProgram fifo
fifo acts as a named pipe between the read and write program.
in Ruby, I did the following
fork { exec readProgram fifo}
system writeProgram fifo
This worked but the performance is much slower than the Unix commandline.
Any idea?
Thanks
-Ted
Hi,
From Unix command line, I did this
mkfifo fifo
readProgram fifo &
writeProgram fifo
fifo acts as a named pipe between the read and write program.
in Ruby, I did the following
fork { exec readProgram fifo}
system writeProgram fifo
This worked but the performance is much slower than the Unix commandline.
So how is:
fork { exec readProgram fifo}
exec writeProgram fifo
in comparison?
Any idea?
Thanks
-Ted
Hugh
ยทยทยท
On Tue, 24 Sep 2002, Meng, Ted wrote: