== Description An open3 library for Win32 == Synopsis require "win32/open3" fin, fout, ferr = Open3.popen3("ver") fin.close e = ferr.gets if e puts "Error: " + e.chomp exit end puts "Output: " + fout.gets.chomp == Module functions Open3.popen3(command,mode='t',show=false) Executes 'command', returning an array of three IO handles representing STDIN, STDOUT and STDERR, respectively. You may optionally pass a mode flag of 't' (text, the default) or 'b' (binary) to this method. If the 'show' variable is set to true, then a console window is shown. Open4.popen4(command,mode='t',show=false) Executes 'command', returning an array consisting of three IO handles, representing STDIN, STDOUT and STDERR, respectively, as well as the PID of the newly generated process. You may optionally pass a mode flag of 't' (text, the default) or 'b' (binary) to this method. If the 'show' variable is set to true, then a console window is shown. == Notes This is a remake of Park's win32_popen package. It has been reworked in order to make the API (nearly) identical to the Open3 package currently included in the Ruby standard library. For now (version 0.2.0) only the popen3 and popen4 methods have been included. In later releases we will probably add the popen2 and posix_popen methods back in. == Known Bugs None that I know of. Please log any other bug reports on the RubyForge project page at http://www.rubyforge.net/projects/win32utils. == License Ruby's == Copyright (C) 2003-2005 Daniel J. Berger, All Rights Reserved . == Warranty This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose. == Authors Park Heesob phasis at nownuri dot net phasis68/park on IRC Daniel J. Berger djberg96 at yahoo dot com rubyhacker1/imperator on IRC