From: Douglas Seifert Date: 2009-06-24T10:30:06+09:00 Subject: Re: Capturing System Call Return Values? --001e680f16d0f1b119046d0e0b30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > > > > No, I had expected to see test == True, as my python script returns > True. All I see is ruby capturing all stdout and storing it in test. > > I can see where the confusion is coming in, lets say my python script > instead of returning true, returns an array of values. I want test to > equal that array of values. > -- > Posted via http://www.ruby-forum.com/. > > You are expecting a program written in one language to return objects to a calling program written in another language ... sorry to say, but it just doesn't work that way. It certainly would be nice, though, I have to admit. The closest you are going to get is to get the python program to print out a string of valid ruby code, make the calling ruby code somehow extract this line of output from all the other potential lines of output the python program might generate and then maybe eval it in the calling program. Or maybe somebody has written some CORBA bindings for ruby? Ha, ha, just kidding ... ;) Good luck ... -Doug Seifert --001e680f16d0f1b119046d0e0b30--