U:RDoc::AnyMethod[iI"pipeline_w:EFI"Open3::pipeline_w;TT: publico: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::BlankLineo: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