popen3(*cmd) public

Open stdin, stdout, and stderr streams and start external executable. Non-block form:

  require 'open3'

  [stdin, stdout, stderr] = Open3.popen3(cmd)

Block form:

  require 'open3'

  Open3.popen3(cmd) { |stdin, stdout, stderr| ... }

The parameter cmd is passed directly to Kernel#exec.

Show source
Register or log in to add new notes.