From: Ara.T.Howard@... Date: 2004-10-23T06:44:13+09:00 Subject: Re: [Q] Problem with popen on WIn32 (1.8.x) On Sat, 23 Oct 2004, Laurent Julliard wrote: > Can anybody tell me why the following Ruby code that uses popen > doesn't work at all on my Windows XP (Pro SP1) machine, ruby 1.8.2 > preview2 or 1.8.1? > > you.rb > ------ > while true > sleep 1 > puts "This line should print in me.rb" > end > > me.rb > ----- > pig = IO.popen("ruby.exe you.rb", "w+") > > while true > pig.gets > end > > Launch me.rb and you'll see that no output is showing at all. On Linux > it works like a charm. > > If you succeed in making this work can you tell me which version of > Ruby and Windows you are using? > > Thanks for all your help > > Laurent perhaps putting STDOUT.sync = true in you.rb might help?? -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | When you do something, you should burn yourself completely, like a good | bonfire, leaving no trace of yourself. --Shunryu Suzuki ===============================================================================