open4.rb

Path: lib/open4.rb
Last Update: Fri Nov 11 15:59:30 WET 2005
Open4 TopLevel

stolen directly from Open3::open3.rb!

open4.rb: Spawn a program like popen, but with stderr, and pid, too. You might also want to use this if you want to bypass the shell. (By passing multiple args, which IO#popen does not allow)

Usage:

      require "open4"

     stdin, stdout, stderr, pid = Open4.popen4('nroff -man')
 or
      include Open4
     stdin, stdout, stderr, pid = popen4('nroff -man')

[Validate]