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/pipeline_r-i.ri
U:RDoc::AnyMethod[iI"pipeline_r:ETI"Open3#pipeline_r;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"JOpen3.pipeline_r starts a list of commands as a pipeline with a pipe ;TI"2which connects to stdout of the last command.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"MOpen3.pipeline_r(cmd1, cmd2, ... [, opts]) {|last_stdout, wait_threads|
;TI"  ...
;TI"}
;TI"
;TI"Llast_stdout, wait_threads = Open3.pipeline_r(cmd1, cmd2, ... [, opts])
;TI"	...
;TI"last_stdout.close
;T:@format0o;
;	[I"'Each cmd is a string or an array. ;TI"AIf it is an array, the elements are passed to Process.spawn.;T@o;;	[I"
cmd:
;TI"_  commandline                              command line string which is passed to a shell
;TI"_  [env, commandline, opts]                 command line string which is passed to a shell
;TI"b  [env, cmdname, arg1, ..., opts]          command name and one or more arguments (no shell)
;TI"h  [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
;TI"
;TI"@Note that env and opts are optional, as for Process.spawn.
;T;
0o;
;	[I"
Example:;T@o;;	[I"?Open3.pipeline_r("zcat /var/log/apache2/access.log.*.gz",
;TI"C                 [{"LANG"=>"C"}, "grep", "GET /favicon.ico"],
;TI"-                 "logresolve") {|o, ts|
;TI"  o.each_line {|line|
;TI"
    ...
;TI"	  }
;TI"}
;TI"
;TI"2Open3.pipeline_r("yes", "head -10") {|o, ts|
;TI":  p o.read      #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"
;TI"K  p ts[0].value #=> #<Process::Status: pid 24910 SIGPIPE (signal 13)>
;TI">  p ts[1].value #=> #<Process::Status: pid 24913 exit 0>
;TI"};T;
0:
@fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*cmds, &block);T@8FI"
Open3;TcRDoc::NormalModule00