I need to run the Ruby script using command line from Java code.
For example my file is in the path D:/MyProject/myruby.rb
I want to run this file from command line and get the response from that. How can I achieve this?
Also, how can we return the response in myruby.rb which could be caught in the command line.