From: Matthew Williams Date: 2006-11-17T00:12:10+09:00 Subject: Re: testing whether a process has completed.. > - I need to be able to test whether or not the ruby program is waiting > for input > - I would also like to be able to test whether or not the program has > finished running I'm not sure how to do this directly, or if this is even possible in Ruby, however what you could do is to insert wrapper code into your user programs. This code could override existing methods and take over the input and output for the user programs. When the programs were then waiting for input from the user, they would then call the wrapper code and this could then indicate to the rails program that the users Ruby program was waiting on input. hope this helps, matt -- Posted via http://www.ruby-forum.com/.