From: Antonio Moreno Date: 2006-11-21T04:24:43+09:00 Subject: File descriptors Hi, I'm trying to code a script for replacing an application which takes it's input from file descriptors 0 (stdin) and 1 (stdout). It must also be able to open another application which in turn also reads from the above mentioned file descriptors. I've managed to take stdin and put it into stdin of the second app, though couldn't find the way of opening stdout for reading. In http://www.rubycentral.com/book/ref_m_kernel.html#Kernel.open, for example, states pretty clear that "...The returned IO object may be used to write to the standard input and read from the standard output of this subprocess..." Does anybody have a clue about this? I'm not very skilled in Ruby, so any help will be very appreciated. Regards. -- Posted via http://www.ruby-forum.com/.