Hello Victor,

vic ismakaev wrote:
> How can I realize two-way pipe?
> 

Maybe this link can help you:
http://rubycentral.com/book/ref_c_io.html#IO.pipe

Cheers,

--
Laurent