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/capture2-i.ri
U:RDoc::AnyMethod[iI"
capture2:ETI"Open3#capture2;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I">Open3.capture2 captures the standard output of a command.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"Astdout_str, status = Open3.capture2([env,] cmd... [, opts])
;T:@format0o;
;	[I"GThe arguments env, cmd and opts are passed to Open3.popen3 except ;TI"X<code>opts[:stdin_data]</code> and <code>opts[:binmode]</code>.  See Process.spawn.;T@o;
;	[I"`If <code>opts[:stdin_data]</code> is specified, it is sent to the command's standard input.;T@o;
;	[I"SIf <code>opts[:binmode]</code> is true, internal pipes are set to binary mode.;T@o;
;	[I"
Example:;T@o;;	[I"6# factor is a command for integer factorization.
;TI"8o, s = Open3.capture2("factor", :stdin_data=>"42")
;TI"p o #=> "42: 2 3 7\n"
;TI"
;TI"1# generate x**2 graph in png using gnuplot.
;TI" gnuplot_commands = <<"End"
;TI"  set terminal png
;TI"!  plot x**2, "-" with lines
;TI"  1 14
;TI"  2 1
;TI"  3 8
;TI"  4 5
;TI"	  e
;TI"	End
;TI"Ximage, s = Open3.capture2("gnuplot", :stdin_data=>gnuplot_commands, :binmode=>true);T;
0:
@fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*cmd);T@0FI"
Open3;TcRDoc::NormalModule00