greg wrote:
> There is a good chance that you are taking the wrong approach to
> solving this problem.  You should give more details about what you are
> trying to accomplish.

I am creating a rails application that allows users to create ruby 
programs and save them to file. I now need to be able to run the users 
programs. I am able to run the user programs and read the output that is 
displayed from the program, however when the user program blocks waiting 
for input (i.e. 'gets' is called) I need to be able to signal to the 
rails program before blocking so that something can be written to the 
STDIN buffer for the user program to read.

I have access to the user programs so could input some code into that, 
which would take over the STDIN and STDOUT of the process, however i am 
not sure how to do this.. and I am using windows

any ideas?

-- 
Posted via http://www.ruby-forum.com/.