On Oct 6, 2007, at 9:10 AM, Marcin Raczkowski wrote:

> this question was repeated over and over a least 20 times (quick  
> google search spawned 10 threads) and answer ultimatelly as the  
> same - someone already did it - use open4 gem / visit  
> codeforpeople.com website

heh - i wrote that i and i didn't suggest that.  good one though!  ;-)

actually that will only help on *nix.  dunno if that helps the OP or  
not?  otherwise check out both open4 *and* session - both on http:// 
codeforpeople.com/

session.rb shows how to communicate with a subprocess as you are -  
check out the Bash and IDL clients.

cheers.

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