On Oct 8, 2007, at 6:00 AM, Urizev wrote:

> 2007/10/7, Nobuyoshi Nakada <nobu / ruby-lang.org>:
>> Hi,
>>
>> At Sat, 6 Oct 2007 20:17:40 +0900,
>> Urizev wrote in [ruby-talk:272872]:
>>> I want to execute a program which prompts for commads from standard
>>> input and returns responses to standard output, this process repeats
>>> several times. I want to execute it from a ruby application. I tried
>>> to use a popen call to do it, but it do not flush the output until
>>> input channel is closed. I need to know what the process request
>>> before sending a response.
>>
>> Use PTY.
>
> What is PTY?


http://en.wikipedia.org/wiki/Pseudo_terminal

ruby included a library for manipulating them.


a @ http://codeforpeople.com/
--
it is not enough to be compassionate.  you must act.
h.h. the 14th dalai lama