HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/ri/3.0.0/system/Open3/popen2-c.ri
U:RDoc::AnyMethod[iI"popen2:ETI"Open3::popen2;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"VOpen3.popen2 is similar to Open3.popen3 except that it doesn't create a pipe for ;TI"the standard error stream.;To:RDoc::Markup::BlankLineo;
;	[I"Block form:;T@o:RDoc::Markup::Verbatim;	[
I"EOpen3.popen2([env,] cmd... [, opts]) {|stdin, stdout, wait_thr|
;TI"8  pid = wait_thr.pid # pid of the started process.
;TI"  ...
;TI"G  exit_status = wait_thr.value # Process::Status object returned.
;TI"}
;T:@format0o;
;	[I"Non-block form:;T@o;;	[	I"Dstdin, stdout, wait_thr = Open3.popen2([env,] cmd... [, opts])
;TI"	...
;TI"Ostdin.close  # stdin and stdout should be closed explicitly in this form.
;TI"stdout.close
;T;
0o;
;	[I"HSee Process.spawn for the optional hash arguments _env_ and _opts_.;T@o;
;	[I"
Example:;T@o;;	[I"$Open3.popen2("wc -c") {|i,o,t|
;TI"<  i.print "answer to life the universe and everything"
;TI"  i.close
;TI"  p o.gets #=> "42\n"
;TI"}
;TI"
;TI"$Open3.popen2("bc -q") {|i,o,t|
;TI"  i.puts "obase=13"
;TI"  i.puts "6 * 9"
;TI"  p o.gets #=> "42\n"
;TI"}
;TI"
;TI"!Open3.popen2("dc") {|i,o,t|
;TI"  i.print "42P"
;TI"  i.close
;TI"  p o.read #=> "*"
;TI"};T;
0:
@fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*cmd, &block);T@<FI"
Open3;TcRDoc::NormalModule00