How can I call python running in shell from ruby. Actually I need ruby to communicate with some app running under the python in shell. So I need ruby to call python (command 'python') in cmd and then import libraries (command 'import xyz') under the python environment, and thne run functions of this imported libraries (for example 'xyz.showdate()'), and get result of course.
I tryed to use IO.popen and Open3.popen3 functions to achieve this, but I do something wrong.
Actually I use jruby on rails, but it should be same with ruby, I guess.