Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Open3
/
//opt/alt/ruby21/share/ri/2.1.0/system/Open3/pipeline_w-i.ri
U:RDoc::AnyMethod[iI"pipeline_w:EFI"Open3#pipeline_w;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JOpen3.pipeline_w starts a list of commands as a pipeline with a pipe ;TI"2which connects to stdin of the first command.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"MOpen3.pipeline_w(cmd1, cmd2, ... [, opts]) {|first_stdin, wait_threads| ;TI" ... ;TI"} ;TI" ;TI"Lfirst_stdin, wait_threads = Open3.pipeline_w(cmd1, cmd2, ... [, opts]) ;TI" ... ;TI"first_stdin.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"COpen3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|i, ts| ;TI" i.puts "hello" ;TI"};T; 0: @fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*cmds, **opts, &block);T@.FI" Open3;FcRDoc::NormalModule00