From: "ara.t.howard" Date: 2007-10-08T22:51:26+09:00 Subject: Re: popen in non-blocking mode On Oct 8, 2007, at 6:00 AM, Urizev wrote: > 2007/10/7, Nobuyoshi Nakada : >> 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