From: Julien Genestoux Date: 2008-07-11T09:21:58+09:00 Subject: Re: Communication between 2 ruby programs Correct me if I'm wrong, but popen will "fork" the current process and run bot.rb in the child. Actually, here, the bot is already "running" and doing some "other stuff" that do not require inputs! Thanks anyway! ara.t.howard wrote: > On Jul 10, 2008, at 3:52 PM, Julien Genestoux wrote: > >> And on the other side, I've got a Rails application. I want to "plug" >> the bot to this rails application, in such a way that the inputs are >> coming from the Rails application, and not from STDIN. > > > > bot = IO.popen 'bot.rb', 'r+' > > > bot.puts 'some command' > bot.flush > > > a @ http://codeforpeople.com/ -- Posted via http://www.ruby-forum.com/.