From: Dossy Date: 2002-06-16T02:59:32+09:00 Subject: Re: Question: how to do (repeated) bidirectional communication with another process via stdin/stdout ? On 2002.06.16, Carsten Gronski wrote: > My problem is, that the standard Ruby IO class seems not to allow this > type of repeated bidirectional communication dialog with another > process. Something like ke = IO.popen("ke.exe", "r+") would give me a > bidirectional communication channel, but unfortunatly it is not > possible to read from the I/O stream until the write end of the I/O > stream is closed. Remember to flush after writing. Or, set the IO to auto-flush. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)