popen2(*cmd, &block)
Class Public methods
::popen2 is similer to ::popen3 except it doesn't make a
pipe for the standard error stream.
Block form:
Open3.popen2([env,] cmd... [, opts]) {|stdin, stdout, wait_thr|
pid = wait_thr.pid # pid of the started process.
...
exit_status = wait_thr.value # Process::Status object returned.
}
Non-block form:
stdin, stdout, wait_thr = Open3.popen2([env,] cmd... [, opts])
...
stdin.close # stdin and stdout should be closed explicitly in