I am trying to automate an interactive DOS command line utility (something
like irb)
using ruby 1.7.3 (on Windows 2000).

I tried using IO#popen but could not make the inputs (puts) interlace with
outputs (gets).
I had to batch all the puts's together before doing the gets.

Any suggestions ?

TIA,
-- shanko