From: Bruce Williams Date: 2002-09-15T08:17:55+09:00 Subject: Re: Getting Python and Ruby to Talk to Each Other On Saturday 14 September 2002 06:06 pm, Sam Hunting wrote: > A clueless Ruby newbie seeks help... > > I have gotten Ruby's amazing Linda tuplespace up and running which was > incredibly easy, so not using Ruby is not an option -- and I have a > database (not relational, not at all standard, written in C) that I > must use a Python extension to query and capture result sets, so not > using Python is not an option. > > So how can I pass a query (in the form of a text string) from rinda to > Python, and how can I pass the results (also in the form of a text > string) from Python back to rinda? > > I tried opening the same socket in Python and Ruby (works in Ruby > only!) and got a "packet size" error. It's also been suggested to me > that I use mkfifo to set up a pipe for the Python process to > communicate with the Ruby process. > > Any thoughts on this? I'm obviously quite inexperienced at this, so a > sample snippet of ruby code would really help. > > Thanks in advance! Have you checked out Ruby/Python in RAA? http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2FPython I've never used it (although I am concurrently a Python programmer)-- but it may be what you're looking for. -- Bruce Williams http://www.codedbliss.com iusris/#ruby-lang bruce@codedbliss.com