ruby - How to use popen3 library in Windows? -


i tried code (mostly popen or open gem) in posts , blogs these - http://blog.bigbinary.com/2012/10/18/backtick-system-exec-in-ruby.html

nothing works because of error -

c:/svn/ruby/lib/ruby/1.8/open3.rb:57:in `fork': fork() function unimplemented on machine (notimplementederror)         c:/svn/ruby/lib/ruby/1.8/open3.rb:57:in `popen3' 

sample code -

require 'open3' cmd = 'git push heroku master' open3.popen3(cmd) |stdin, stdout, stderr, wait_thr|   puts "stdout is:" + stdout.read   puts "stderr is:" + stderr.read end 

how make work old ruby 1.8 gem ?

the open3 gem doesn't work on windows. =/

io::popen closest thing can think of.


Comments