From my rails application I am looking to do the following:
- run a saved ruby file, e.g. program.rb
-read anything that this program may output
-detect if the program is waiting for input, then write to the program
-report any errors when the program has finished running
so basically i would like my rails application to simulate a command
shell. I think i may need to use the gem ‘systemu’. Any help on this
would be very much appreciated. Thanks
j