From: Nobuyoshi Nakada Date: 2007-10-07T14:59:44+09:00 Subject: Re: popen in non-blocking mode 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. -- Nobu Nakada