open4.rb

Path: lib/open4.rb
Last Update: Fri Sep 30 21:17:49 +0000 2011
Open4 dot/f_2.png

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]