I’m using IO.popen(“cmd”) in my Ruby script to run an Ironruby subroutine. In my Ironruby script, I am getting some data and storing it in a hash. In my Ruby script, I then use x=IO.popen(“Iron ruby script”) to retrieve the hash. Problem is, I can’t seem to get the hash to show up in my Ruby script. I’ve tried x.gets, x.read, etc etc.
What would be the best way to get the hash from this pipe using IO.popen?
Thanks
In the subproccess:
In the parent: