From: "Kroeger Simon (ext)" Date: 2005-09-14T19:40:34+09:00 Subject: Re: Win Pipes and IO Thanks for trying it. D:\simon>ruby -v ruby 1.8.2 (2004-12-25) [i386-mswin32] D:\simon>ver Microsoft Windows 2000 [Version 5.00.2195] D:\simon>ruby winpipe.rb winpipe.rb:50:in `initialize': No such file or directory (Errno::ENOENT) from winpipe.rb:50:in `new' from winpipe.rb:50 D:\simon> Any ideas why it fails here? I will build the 1.8.3... cheers Simon > -----Original Message----- > From: nobuyoshi nakada [mailto:nobuyoshi.nakada@ge.com] > Sent: Wednesday, September 14, 2005 12:32 PM > To: ruby-talk ML > Subject: Re: Win Pipes and IO > > Hi, > > At Wed, 14 Sep 2005 18:56:56 +0900, > Kroeger Simon (ext) wrote in [ruby-talk:156055]: > > What I wanted to do was creating new IO objects instead of calling > > fdopen myself, but I can't get it to work. The > implementation of IO.new > > calls fdopen so I realy have no clue why this should not do > the trick. > > It worked successfully, with both of mswin32 and mingw32 ruby. > > $ tail -5 pipe.rb > inp = IO.new(f_in, 'rb') > outp = IO.new(f_out, 'wb') > outp.print("Hellooooo\000") > outp.close > p inp.gets > > $ ruby18-mswin32.exe -v pipe.rb > ruby 1.8.3 (2005-07-03) [i386-mswin32] > "Hellooooo\000" > > $ ruby18-mingw32.exe -v pipe.rb > ruby 1.8.3 (2005-09-12) [i386-mingw32] > "Hellooooo\000" > > -- > Nobu Nakada