From: Chris Morris Date: 2002-03-19T10:38:23+09:00 Subject: RE: Development of Windows version of Ruby > What happens in the Ruby 1.6.6 > Windows version > when someone uses these functions? fork = false popen = true if !irb irb(main):001:0> fork do irb(main):002:1* 3.times {|i| puts "Child: #{i}" } irb(main):003:1> end NotImplementedError: The fork() function is unimplemented on this machine from (irb):2:in `fork' from (irb):2 [don't try popen in irb on windows 95 ... at least not with Apache running] C:\TEMP>copy con popen.rb f = IO.popen("dir") p f.readlines ^Z 1 file(s) copied C:\TEMP>ruby popen.rb ["\n", " Volume in drive C is MO-ONE \n", " Volume Serial Number is 1854-16E 0\n", " Directory of C:\\TEMP\n", "\n", ". 03-08-99 8 :56p .\n", ".. 03-08-99 8:56p ..\n", "DELETE XML 504 03-15-02 11:33p delete.xml\n", "POPEN RB 36 03-18-02 7:37p popen.rb\n", " 2 file(s) 540 bytes\n", " 2 di r(s) 87,752,704 bytes free\n"]