capture3(*cmd)
Class Public methods
::capture3 captures the standard
output and the standard error of a command.
stdout_str, stderr_str, status = Open3.capture3([env,] cmd... [, opts])
The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn.
If opts is specified, it is sent to the
command's standard input.
If opts is true, internal pipes are set to binary
mode.
Example:
# dot is a command of graphviz.
graph = <<'End'
digraph g {
a