100+ results for 'IO::Pipe'

Not the results you expected?

cmd.rs (https://github.com/ffwff/hana.git) Rust · 249 lines

171 .downcast_mut::<Command>()

172 .unwrap()

173 .stdin(Stdio::piped())

174 .stdout(Stdio::piped())

175 .stderr(Stdio::piped())

176 .spawn()

177 .unwrap();

command.rb (https://github.com/oiegorov/expo_improved.git) Ruby · 130 lines

49 # Runs the created command

50 def run

51 @mystdin, @stdin = IO::pipe

52 @stdout, @mystdout = IO::pipe

53 @stderr, @mystderr = IO::pipe

54

55 @pid = fork do

process.rs (https://github.com/Spotifyd/spotifyd.git) Rust · 169 lines

36 .arg(cmd)

37 .envs(env.iter())

38 .stdin(Stdio::piped())

39 .stdout(Stdio::piped())

40 .stderr(Stdio::piped())

41 .spawn()

42 .map_err(|e| Error::subprocess_with_err(shell, cmd, e))?;

backtrace.rs (https://github.com/avr-rust/rust.git) Rust · 123 lines

34 let mut m = Command::new(me);

35 m.env("IS_TEST", "1")

36 .stdout(Stdio::piped())

37 .stderr(Stdio::piped());

chains-visual.rs (https://gitlab.com/rust-lang/rust) Rust · 158 lines

128

129 fn issue1236(options: Vec<String>) -> Result<Option<String>> {

130 let process = Command::new("dmenu").stdin(Stdio::piped())

131 .stdout(Stdio::piped())

Pipe.pm (https://github.com/dougwilson/perl.git) Perl · 257 lines

36 sub handles {

37 @_ == 1 or croak 'usage: $pipe->handles()';

38 (IO::Pipe::End->new(), IO::Pipe::End->new());

39 }

40

161 =head1 NAME

162

163 IO::Pipe - supply object methods for pipes

164

165 =head1 SYNOPSIS

185 or

186

187 $pipe = IO::Pipe->new();

188

189 $pipe->reader(qw(ls -l));

lib.rs (https://github.com/google/rust-shell.git) Rust · 200 lines

154 //! {

155 //! let mut command = &mut shell_command.command;

156 //! command.stdout(Stdio::piped());

157 //! }

158 //!

backend.rs (https://github.com/matheuslessarodrigues/verco.git) Rust · 199 lines

155 command.args(args);

156 command.stdin(Stdio::null());

157 command.stdout(Stdio::piped());

158 command.stderr(Stdio::piped());

Pipe.pm (https://github.com/avsm/src.git) Perl · 257 lines

36 sub handles {

37 @_ == 1 or croak 'usage: $pipe->handles()';

38 (IO::Pipe::End->new(), IO::Pipe::End->new());

39 }

40

161 =head1 NAME

162

163 IO::Pipe - supply object methods for pipes

164

165 =head1 SYNOPSIS

185 or

186

187 $pipe = new IO::Pipe;

188

189 $pipe->reader(qw(ls -l));

open3.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 102 lines

46 def popen3(*cmd, &p)

47 IO::popen3(*cmd, &p)

48 # pw = IO::pipe # pipe[0] for read, pipe[1] for write

49 # pr = IO::pipe

50 # pe = IO::pipe

51 #

52 # pid = fork{

main.rs (https://gitlab.com/guodman/mux-launcher) Rust · 294 lines

187 .arg("-c")

188 .arg(format!("sudo lxc-ls -1 {}", state.flag()))

189 .stdout(Stdio::piped())

190 .spawn()

191 .expect("Unable to get containers");

211 .arg("-c")

212 .arg(format!("sudo lxc-info -n {}", self.name))

213 .stdout(Stdio::piped())

214 .spawn()

215 .expect("Unable to get details");

daemon.rs (https://github.com/kstep/rust-mpd.git) Rust · 140 lines

104 .stdin(Stdio::null())

105 .stdout(Stdio::null())

106 .stderr(Stdio::piped())

107 .spawn()

108 .expect("Could not create mpd daemon.");

pipe.rs (https://gitlab.com/pranith/rust) Rust · 141 lines

123 fn partial_read() {

124 use os;

125 use old_io::pipe::PipeStream;

126

127 let (reader, writer) = unsafe { ::sys::os::pipe().unwrap() };

DescriptorTest.cpp (https://code.google.com/p/linux-lighting/) C++ · 302 lines

32 using ola::io::ConnectedDescriptor;

33 using ola::io::LoopbackDescriptor;

34 using ola::io::PipeDescriptor;

35 using ola::io::UnixSocket;

36 using ola::io::SelectServer;

procsrv.rs (https://gitlab.com/pranith/rust) Rust · 97 lines

42 let mut cmd = Command::new(prog);

43 cmd.args(args)

44 .stdin(Stdio::piped())

45 .stdout(Stdio::piped())

46 .stderr(Stdio::piped());

47 add_target_env(&mut cmd, lib_path, aux_path);

48 for (key, val) in env {

77 let mut cmd = Command::new(prog);

78 cmd.args(args)

79 .stdin(Stdio::piped())

80 .stdout(Stdio::piped())

81 .stderr(Stdio::piped());

82 add_target_env(&mut cmd, lib_path, aux_path);

83 for (key, val) in env {

notification_handler.rs (https://github.com/KillingSpark/rustysd.git) Rust · 277 lines

113 // need to collect all again. There might be a newly started service

114 let fd_to_srvc_id = collect_from_srvc(run_info.clone(), |map, srvc, id| {

115 if let Some(StdIo::Piped(r, _w)) = &srvc.stdout {

116 map.insert(*r, id);

117 }

182 // need to collect all again. There might be a newly started service

183 let fd_to_srvc_id = collect_from_srvc(run_info.clone(), |map, srvc, id| {

184 if let Some(StdIo::Piped(r, _w)) = &srvc.stderr {

185 map.insert(*r, id);

186 }

compiler.rs (https://github.com/hatoo/Accepted.git) Rust · 264 lines

125 let mut success = false;

126

127 if let Ok(cmd) = cmd.stderr(process::Stdio::piped()).output().await {

128 success = cmd.status.success();

129 }

145 let mut success = false;

146

147 if let Ok(rustc) = rustc.stderr(process::Stdio::piped()).output().await {

148 success = rustc.status.success();

149 let buf = rustc.stderr;

177 let mut success = false;

178

179 if let Ok(clang) = clang.stderr(process::Stdio::piped()).output().await {

180 success = clang.status.success();

181 let buf = clang.stderr;

test_syslog.rb (https://github.com/AsherBond/MondocosmOS-Dependencies.git) Ruby · 185 lines

121

122 def test_log

123 stderr = IO::pipe

124

125 pid = fork {

dump_opcodes.rs (https://github.com/facebook/hhvm.git) Rust · 70 lines

55 let mut child = Command::new("rustfmt");

56 child.args(["--emit", "stdout"]);

57 child.stdin(Stdio::piped());

58

59 if let Some(out) = opts.output.as_ref() {

pgp.rs (https://github.com/meli/meli.git) Rust · 179 lines

45 bytes_file.path.to_str().unwrap(),

46 ])

47 .stdin(Stdio::piped())

48 .stderr(Stdio::piped())

86

87 let sig_attachment = command

88 .stdin(Stdio::piped())

89 .stdout(Stdio::piped())

135 let stdout = command

136 .args(&["--decrypt"])

137 .stdin(Stdio::piped())

138 .stdout(Stdio::piped())

139 .stderr(Stdio::piped())

140 .spawn()

141 .and_then(|mut gpg| {

process.rb (https://github.com/janktrust/tmbundles4win.git) Ruby · 179 lines

94

95 io = []

96 3.times { io << ::IO::pipe }

97

98 # F_SETOWN = 6, ideally this would be under Fcntl::F_SETOWN

Method.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 183 lines

1 # BioPerl module for Bio::Pipeline::Method

2 #

3 # You may distribute this module under the same terms as perl itself

8 =head1 NAME

9

10 Bio::Pipeline::Method

11

12 =head1 SYNOPSIS

13

14 use Bio::Pipeline::Method;

15 my $data_handler = Bio::Pipeline::Method->new(-dbid=>1,

69 # Let the code begin...

70

71 package Bio::Pipeline::Method;

72 use vars qw(@ISA);

73 use strict;

process.rs (https://github.com/makepad/makepad.github.io.git) Rust · 111 lines

18 cbuild.args(args)

19 .stdin(Stdio::null())

20 .stdout(Stdio::piped())

21 .stderr(Stdio::piped())

Pipe.pm (https://netmf.svn.codeplex.com/svn) Perl · 240 lines

36 sub handles {

37 @_ == 1 or croak 'usage: $pipe->handles()';

38 (IO::Pipe::End->new(), IO::Pipe::End->new());

39 }

40

144 =head1 NAME

145

146 IO::pipe - supply object methods for pipes

147

148 =head1 SYNOPSIS

168 or

169

170 $pipe = new IO::Pipe;

171

172 $pipe->reader(qw(ls -l));

bot.rs (https://gitlab.com/Schmiddiii/ntd) Rust · 120 lines

47 let mut command = self

48 .command()

49 .stdin(Stdio::piped())

50 .stdout(Stdio::piped())

openssl_test_key_gen.rs (https://github.com/stepancheg/rust-http2.git) Rust · 138 lines

126 .arg(&format!("pass:{}", passin))

127 .arg("-nodes")

128 .stdin(Stdio::piped())

129 .stdout(Stdio::piped())

command.rb (https://github.com/oiegorov/expo_improved.git) Ruby · 130 lines

49 # Runs the created command

50 def run

51 @mystdin, @stdin = IO::pipe

52 @stdout, @mystdout = IO::pipe

53 @stderr, @mystderr = IO::pipe

54

55 @pid = fork do

collapse-vtune.rs (https://github.com/kylixs/flare-profiler.git) Rust · 130 lines

118 let mut child = Command::cargo_bin("inferno-collapse-vtune")

119 .unwrap()

120 .stdin(Stdio::piped())

121 .stdout(Stdio::piped())

process.md (https://github.com/rustcc/RustPrimer.git) Markdown · 121 lines

102 .arg(&pt)

103 // 设置pipeline

104 .stdout(Stdio::piped())

105 .spawn().unwrap();

106 // 做些其他的事情

mod.rs (https://gitlab.com/zachdaniel/rush) Rust · 335 lines

49 Spawn::BuiltIn(_) => (),

50 Spawn::Com(ref mut command) => {

51 command.stdin(Stdio::piped());

52 }

53 }

77 if let Some(ref mut next) = self.piped_to {

78 next.piped_input();

79 command.stdout(Stdio::piped());

80 } else if let Some(_) = self.file_out {

81 command.stdout(Stdio::piped());

83

84 if self.file_in.is_some() {

85 command.stdin(Stdio::piped());

86 }

87

pipe.rs (https://gitlab.com/skv-headless/test-submodules.git) Rust · 140 lines

49 /// extern crate libc;

50 ///

51 /// use std::io::pipe::PipeStream;

52 ///

53 /// fn main() {

122 iotest!(fn partial_read() {

123 use os;

124 use io::pipe::PipeStream;

125

126 let os::Pipe { reader, writer } = unsafe { os::pipe().unwrap() };

syslog.rb (https://github.com/benlovell/ramaze.git) Ruby · 76 lines

41 # from the pipe and compare them to what we expected.

42 def test_log_msg( type, priority, msg )

43 logpipe = IO::pipe

44 child = fork {

45 logpipe[0].close

MockEndpoint.h (https://code.google.com/p/linux-lighting/) C Header · 146 lines

18 * use case is:

19 *

20 * ola::io::PipeSocket pipe;

21 * pipe.Init();

22 * ola::io::PipeSocket *other_end = pip.OppositeEnd();

Argument.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 235 lines

1 #

2 # BioPerl module for Bio::Pipeline::Argument

3 #

4 # You may distribute this module under the same terms as perl itself

9 =head1 NAME

10

11 Bio::Pipeline::Argument

12

13 =head1 SYNOPSIS

14

15 use Bio::Pipeline::Argument;

16 my $arg = new Bio::Pipeline::Argument(-dbID => $argument_id,

68 =cut

69

70 package Bio::Pipeline::Argument;

71 use vars qw(@ISA);

72 use strict;

Base.pm (https://github.com/suhailsherif/MySQL-5.1-.git) Perl · 222 lines

29

30 use Carp;

31 use IO::Pipe;

32

33 use base qw(Exporter);

171

172 local $SIG{PIPE}= sub { print STDERR "Got signal $@\n"; };

173 my $pipe= IO::Pipe->new();

174 my $pid= _safe_fork();

175 if ($pid){

chains-visual.rs (https://gitlab.com/rust-lang/rust) Rust · 158 lines

129

130 fn issue1236(options: Vec<String>) -> Result<Option<String>> {

131 let process = Command::new("dmenu").stdin(Stdio::piped())

132 .stdout(Stdio::piped())

test_syslog.rb (https://github.com/ehedberg/travis.git) Ruby · 194 lines

23 return if RUBY_PLATFORM =~ %r/cygwin/

24

25 stderr = IO::pipe

26

27 pid = fork do

81 return if RUBY_PLATFORM =~ %r/cygwin/

82

83 stderr = IO::pipe

84

85 pid = fork do

upgradedb.pl (https://github.com/dougc333/sfs_eventdrivenc--templatelibrary.git) Perl · 257 lines

10

11 use IO::File;

12 use IO::Pipe;

13 use POSIX qw(strftime);

14 use strict;

58 }

59

60 my $pipe = new IO::Pipe ();

61 $pipe->reader ("$prog $SFS_USERS");

62 my @ret;

ssh.rs (https://github.com/substantic/rain.git) Rust · 173 lines

33 .arg(&self.host)

34 .arg("/bin/sh")

35 .stdin(Stdio::piped())

36 .stdout(Stdio::piped())

37 .stderr(Stdio::piped());

38 command

39 }

k_sig_child.pm (https://github.com/rcaputo/poe-test-loops.git) Perl · 211 lines

47 }

48

49 use IO::Pipely qw(pipely);

50 my ($pipe_read, $pipe_write) = pipely();

51

right_popen.rb (https://github.com/gchpaco/right_popen.git) Ruby · 129 lines

72 GC.start # To garbage collect open file descriptors from passed executions

73 EM.next_tick do

74 inr, inw = IO::pipe

75 outr, outw = IO::pipe

76 errr, errw = IO::pipe

77

78 [inr, inw, outr, outw, errr, errw].each {|fdes| fdes.sync = true}

PipedWriter.hpp (https://github.com/alicx/ph-open.git) C++ Header · 202 lines

124

125

126 java::io::PipedWriter::PipedWriter(local_ref< java::io::PipedReader > const &a0)

127 : object<java::io::PipedWriter>(

146 }

147

148 void java::io::PipedWriter::connect(local_ref< java::io::PipedReader > const &a0)

149 {

150 return call_method<

151 java::io::PipedWriter::J2CPP_CLASS_NAME,

152 java::io::PipedWriter::J2CPP_METHOD_NAME(3),

153 java::io::PipedWriter::J2CPP_METHOD_SIGNATURE(3),

154 void

155 >(get_jobject(), a0);

serialization_app_xml.cxx (https://repo.or.cz/LibreOffice.git) C++ · 126 lines

52

53 CSerializationAppXML::CSerializationAppXML()

54 : m_xBuffer(css::io::Pipe::create(comphelper::getProcessComponentContext()))

55 {

56 }

collapse-guess.rs (https://github.com/jonhoo/inferno.git) Rust · 157 lines

145 let mut child = Command::cargo_bin("inferno-collapse-guess")

146 .unwrap()

147 .stdin(Stdio::piped())

148 .stdout(Stdio::piped())

clipboard.rs (https://github.com/akiradeveloper/ijk.git) Rust · 162 lines

76 fn clipboard_copy(s: &str) -> bool {

77 if let Ok(mut p) = Command::new("pbcopy")

78 .stdin(process::Stdio::piped())

79 .spawn()

80 .or_else(|_| {

81 Command::new("win32yank")

82 .arg("-i")

83 .stdin(process::Stdio::piped())

84 .spawn()

85 })

87 Command::new("win32yank.exe")

88 .arg("-i")

89 .stdin(process::Stdio::piped())

90 .spawn()

91 })

test_cli.rs (https://github.com/mookid/diffr.git) Rust · 211 lines

75 fn test_cli(descr: ProcessTest) {

76 let mut cmd = Command::new(diffr_path());

77 cmd.stdout(Stdio::piped());

78 cmd.stderr(Stdio::piped());

79 cmd.stdin(Stdio::piped());

80 for arg in descr.args {

81 cmd.arg(&*arg);

Est2Genome.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 230 lines

1 # Pipeline module for Est2Genome Bio::Pipeline::Runnable::Est2Genome

2 #

3 # Based on the EnsEMBL module Bio::EnsEMBL::Pipeline::Runnable::Est2Genome

16 # =head1 NAME

17 #

18 # Bio::Pipeline::Runnable::Est2Genome

19 #

20 =head1 SYNOPSIS

21

22 my $runnable = Bio::Pipeline::Runnable::RunnableSkeleton->new();

23 $runnable->analysis($analysis);

24 $runnable->run;

62 =cut

63

64 package Bio::Pipeline::Runnable::Est2Genome;

65 use vars qw(@ISA);

66 use strict;

combined.rs (https://github.com/dbcrossbar/dbcrossbar.git) Rust · 160 lines

40 .cmd()

41 .args(&["schema", "conv", &pg_table, "postgres-sql:pg.sql"])

42 .stdout(Stdio::piped())

43 .tee_output()

44 .expect_success();

utils.rs (https://github.com/SubstratumNetwork/SubstratumNode.git) Rust · 107 lines

22 pub fn start(command: &str, parameters: Vec<&str>) -> TestCommand {

23 let mut command_object = TestCommand::make_command(command, parameters.clone());

24 command_object.stdout(Stdio::piped());

25 command_object.stderr(Stdio::piped());

main.rs (https://github.com/meilisearch/MeiliES.git) Rust · 119 lines

79 .arg("-c")

80 .arg(&command)

81 .stdin(Stdio::piped())

82 .env("MEILIES_STREAM_NAME", stream.into_inner())

83 .env("MEILIES_EVENT_NAME", event_name.into_inner())

main.rs (https://github.com/zserge/tinysh.git) Rust · 114 lines

78 }

79 if is_pipe {

80 io_in = Stdio::piped()

81 }

82 let mut args_iter = args.iter();

DataMongerAdaptor.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 163 lines

14 =head1 NAME

15

16 Bio::Pipeline::SQL::DataMonger

17

18 =head1 SYNOPSIS

77 =cut

78

79 package Bio::Pipeline::SQL::DataMongerAdaptor;

80

81 use Bio::Pipeline::Node;

82 use Bio::Pipeline::Runnable::DataMonger;

83 use Bio::Root::Root;

84 use Bio::Pipeline::InputCreate;

85 use Bio::Pipeline::SQL::AnalysisAdaptor;

86

87 use vars qw(@ISA);

shell_pipe.rs (https://github.com/killercup/trpl-ebook.git) Rust · 69 lines

44 Command::new(command)

45 .args(&args)

46 .stdin(Stdio::piped())

47 .stdout(Stdio::piped())

cargo.rs (https://github.com/microsoft/winrt-rs.git) Rust · 141 lines

118 let output = self

119 .command

120 .stdout(Stdio::piped())

121 .stderr(Stdio::piped())

Iterator.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 168 lines

1 #

2 # BioPerl module for Bio::Pipeline::Utils::Iterator

3 #

4 # Please direct questions and support issues to <bioperl-l@bioperl.org>

14 =head1 NAME

15

16 Bio::Pipeline::Utils::Iterator

17

18 =head1 SYNOPSIS

19

20 use Bio::Pipeline::Utils::Iterator;

21 use Bio::AlignIO;

22

23 my $itr = Bio::Pipeline::Utils::Iterator->new();

24 my $aio = Bio::AlignIO->new(-file=>$ARGV[0],-format=>"phylip");

25

pipe.rs (https://github.com/sonwow/rust.git) Rust · 136 lines

50 /// extern crate libc;

51 ///

52 /// use std::io::pipe::PipeStream;

53 ///

54 /// fn main() {

118 fn partial_read() {

119 use os;

120 use io::pipe::PipeStream;

121

122 let os::Pipe { reader, writer } = unsafe { os::pipe().unwrap() };

lib.rs (https://github.com/facebookexperimental/eden.git) Rust · 130 lines

33 .arg(format!("{}", lfs.size()))

34 .stdin(Stdio::null())

35 .stdout(Stdio::piped())

36 .spawn_async();

37

pipeio.cc (https://github.com/h4ck3rm1k3/gw6c-debian.git) C++ · 202 lines

32 //

33 // --------------------------------------------------------------------------

34 PipeIO::PipeIO( void ) :

35 IPCServent()

36 {

Tmhmm.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 199 lines

1 # Pipeline module for Tmhmm Bio::Pipeline::Runnable::Tmhmm

2 #

3 # Based on the EnsEMBL module Bio::EnsEMBL::Pipeline::Runnable::Protein::Tmhmm

14 =head1 NAME

15

16 Bio::Pipeline::Runnable::Tmhmm

17

18 =head1 SYNOPSIS

19

20 my $runnable = Bio::Pipeline::Runnable::Tmhmm->new();

21 $runnable->analysis($analysis);

22 $runnable->run;

75 =cut

76

77 package Bio::Pipeline::Runnable::Tmhmm;

78 use vars qw(@ISA);

79 use strict;

temp_base_path_works.rs (https://github.com/paritytech/substrate.git) Rust · 72 lines

38 let mut cmd = cmd

39 .args(&["--dev", "--tmp"])

40 .stdout(Stdio::piped())

41 .stderr(Stdio::piped())

rga-fzf.rs (https://github.com/phiresky/ripgrep-all.git) Rust · 64 lines

49 )

50 .env("RGA_FZF_INSTANCE", format!("{}", std::process::id())) // may be useful to open stuff in the same tab

51 .stdout(Stdio::piped())

52 .spawn()

53 .map_err(|e| map_exe_error(e, "fzf", "Please make sure you have fzf installed."))?;

linux.rs (https://github.com/federico-terzi/espanso.git) Rust · 98 lines

42 let res = Command::new("xclip")

43 .args(&["-sel", "clip"])

44 .stdin(Stdio::piped())

45 .spawn();

46

serve_request.rs (https://github.com/svenstaro/miniserve.git) Rust · 124 lines

83 .arg("-p")

84 .arg("0".to_string())

85 .stdout(Stdio::piped())

86 .spawn()?;

87

108 .arg(port.to_string())

109 .arg(tmpdir.path())

110 .stdout(Stdio::piped())

111 .spawn()?;

112

magic.rs (https://github.com/lunaryorn/mdcat.git) Rust · 111 lines

29 .arg("--mime-type")

30 .arg("-")

31 .stdin(Stdio::piped())

32 .stdout(Stdio::piped())

33 .stderr(Stdio::piped())

34 .spawn()

35 .with_context(|| "Failed to spawn mime --brief --mime-type")?;

base.rb (https://github.com/toy/sdoc_all.git) Ruby · 217 lines

140 Kernel.system(*args)

141 else

142 rd, wr = IO::pipe

143

144 pid = fork{

script.rs (https://github.com/BenSchZA/pier.git) Rust · 109 lines

56 .arg(&self.alias)

57 .args(&args)

58 .stderr(Stdio::piped())

59 .spawn()

60 .context(CommandExec)?

98

99 let cmd = Command::new(exec_file_path)

100 .stderr(Stdio::piped())

101 .args(&args)

102 .spawn()

cli.rs (https://github.com/lunaryorn/mdcat.git) Rust · 92 lines

72 let mut child = cargo_mdcat()

73 .arg("sample/common-mark.md")

74 .stdout(Stdio::piped())

75 .stderr(Stdio::piped())

fds-are-cloexec.rs (git://github.com/eholk/rust.git) Rust · 90 lines

50 let mut child = Command::new(env::args().next().unwrap())

51 .arg("100")

52 .stdout(Stdio::piped())

53 .stdin(Stdio::piped())

54 .stderr(Stdio::piped())

55 .spawn().unwrap();

56 let pipe1 = child.stdin.take().unwrap();

gpg.rs (https://github.com/akheron/sala.git) Rust · 124 lines

43 .arg("--")

44 .arg(path.as_os_str())

45 .stdout(Stdio::piped())

46 .stderr(Stdio::piped())

97 .arg("--passphrase-fd")

98 .arg(passphrase_read_fd.to_string())

99 .stdin(Stdio::piped())

100 .stdout(outfile)

101 .stderr(Stdio::piped())

heliotrope.rb (https://github.com/bdimcheff/heliotrope.git) Ruby · 42 lines

3 ## we use this ruby 1.8 backport.

4 def popen3(*cmd)

5 pw, pr, pe = IO::pipe, IO::pipe, IO::pipe # [0] = read, [1] = write

6

7 pid = fork do

integration_test.rs (https://github.com/oreboot/oreboot.git) Rust · 151 lines

27

28 fn dts_to_dtb(dts: &str) -> std::vec::Vec<u8> {

29 let mut dtc = Command::new("dtc").arg("-O").arg("dtb").stdin(Stdio::piped()).stdout(Stdio::piped()).stderr(Stdio::piped()).spawn().unwrap();

30 dtc.stdin.as_mut().unwrap().write_all(dts.as_bytes()).unwrap();

31 let output = dtc.wait_with_output().unwrap();

popen.rb (https://github.com/elmer/babushka.git) Ruby · 38 lines

2 module Open3

3 def popen3 cmd, &block

4 pipes = { :in => IO::pipe, :out => IO::pipe, :err => IO::pipe }

5 near = { :in => pipes[:in][1], :out => pipes[:out][0], :err => pipes[:err][0] }

6 far = { :in => pipes[:in][0], :out => pipes[:out][1], :err => pipes[:err][1] }

NodeAdaptor.pm (https://github.com/bioperl/bioperl-pipeline.git) Perl · 154 lines

14 =head1 NAME

15

16 Bio::Pipeline::SQL::NodeAdaptor

17

18 =head1 SYNOPSIS

77 =cut

78

79 package Bio::Pipeline::SQL::NodeAdaptor;

80

81 use Bio::Pipeline::Node;

85 use strict;

86

87 @ISA = qw( Bio::Pipeline::SQL::BaseAdaptor);

88

89 # Let the code begin...

pminst (git://pkgs.fedoraproject.org/perl-pmtools) Perl · 160 lines

85 IO::Poll

86 IO::Handle

87 IO::Pipe

88 IO::Seekable

89 IO::Dir

97 IO::Poll

98 IO::Handle

99 IO::Pipe

100 IO::Seekable

101 IO::Dir

114 /usr/lib/perl5/i386-linux/5.00404 IO::File

115 /usr/lib/perl5/i386-linux/5.00404 IO::Handle

116 /usr/lib/perl5/i386-linux/5.00404 IO::Pipe

117 /usr/lib/perl5/i386-linux/5.00404 IO::Seekable

118 /usr/lib/perl5/i386-linux/5.00404 IO::Select

parent.rs (https://github.com/kpcyrd/sn0int.git) Rust · 144 lines

34 .arg("sandbox")

35 .arg(&module.canonical())

36 .stdin(Stdio::piped())

37 .stdout(Stdio::piped())

process.rst (https://github.com/wdv4758h/notes.git) ReStructuredText · 179 lines

81 // 更改 stdin/stdout/stderr

82 .stdin(Stdio::null())

83 .stdout(Stdio::piped())

84 .stderr(Stdio::piped())

143 let child1 = Command::new("echo")

144 .arg("0123456789")

145 .stdout(Stdio::piped())

146 .spawn()

147 .expect("Failed to start echo process");

151 .arg("4567")

152 .stdin(Stdio::from(child1.stdout.expect("failed to open stdout")))

153 .stdout(Stdio::piped())

154 .spawn()

155 .expect("Failed to start sed process");

158 .arg("s/56/65/")

159 .stdin(Stdio::from(child2.stdout.expect("failed to open stdout")))

160 .stdout(Stdio::piped())

161 .output()

162 .expect("Failed to start sed process");

command.rs (https://github.com/tauri-apps/tauri.git) Rust · 171 lines

104

105 // call get_output with cat and the argument test/test.txt on the stdio.

106 let res = get_output(cmd, vec!["test/test.txt".to_string()], Stdio::piped());

107

108 // assert that the result is an Ok() type

126

127 // call get output with test/ as an argument on the stdio.

128 let res = get_output(cmd, vec!["test/".to_string()], Stdio::piped());

129

130 // assert that the result is an Error type.

158

159 // call spawn_relative_command with cat and the argument test/test.txt on the Stdio.

160 let res = spawn_relative_command(cmd, vec!["test/test.txt".to_string()], Stdio::piped());

161

162 // this fails because there is no cat binary in the relative parent folder of this current executing command.

libxul.rs (https://github.com/gimli-rs/cpp_demangle.git) Rust · 206 lines

51 let which_cppfilt = get_cppfilt();

52 let mut cppfilt = process::Command::new(which_cppfilt)

53 .stdin(process::Stdio::piped())

54 .stdout(process::Stdio::piped())

reader.rs (https://github.com/timberio/vector.git) Rust · 123 lines

22

23 fn prepare_stdout(command: &mut Command) {

24 command.stdout(Stdio::piped());

25 }

26

replaceAtQual.pl (https://github.com/stuartpyoung/agua.git) Perl · 125 lines

67 use Term::ANSIColor qw(:constants);

68 use Getopt::Long;

69 use IO::Pipe;

70

71 #### SET DEFAULT SEPARATOR

lib.rs (https://github.com/korken89/smlang-rs.git) Rust · 58 lines

31 let mut process = std::process::Command::new("dot")

32 .args(&["-Tsvg", "-o", "statemachine.svg"])

33 .stdin(std::process::Stdio::piped())

34 .spawn()

35 .expect("Failed to execute 'dot'. Are you sure graphviz is installed?");

dmg_bundle.rs (https://github.com/tauri-apps/tauri.git) Rust · 132 lines

72 .arg(&license_script_path)

73 .current_dir(output_path)

74 .stdout(Stdio::piped())

75 .stderr(Stdio::piped())

program.cpp (https://github.com/dotnet/dotnet-api-docs.git) C++ · 160 lines

4 using namespace System;

5 using namespace System::IO;

6 using namespace System::IO::Pipes;

7 using namespace System::Text;

8 using namespace System::Threading;

death.rs (https://gitlab.com/frewsxcv/cargo) Rust · 101 lines

46 let mut cargo = p.cargo("build").build_command();

47 cargo

48 .stdin(Stdio::piped())

49 .stdout(Stdio::piped())

50 .stderr(Stdio::piped())

51 .env("__CARGO_TEST_SETSID_PLEASE_DONT_USE_ELSEWHERE", "1");

52 let mut child = cargo.spawn().unwrap();

server.rs (https://github.com/cargonauts-rs/cargonauts.git) Rust · 137 lines

82 let mut child = cmd.arg("run").arg("--example").arg(example)

83 .env("PORT", port.to_string())

84 .stderr(process::Stdio::piped())

85 .spawn().unwrap();

86

subprocess.hpp (https://gitlab.com/huayuting/mesos) C++ Header · 171 lines

69 static IO PIPE()

70 {

71 return IO(IO::PIPE, None(), None());

72 }

73

chroot.rs (https://github.com/pop-os/distinst.git) Rust · 100 lines

61 ..arg(cmd.as_ref());

62 ..args(args);

63 ..stderr(Stdio::piped());

64 ..stdout(Stdio::piped());

c.rs (https://github.com/adam-mcdaniel/oakc.git) Rust · 162 lines

128 .args(&["-o", &format!("main{}", EXE_SUFFIX)[..]])

129 .args(&["-x", "c", "-"])

130 .stdin(Stdio::piped())

131 .spawn();

132

test_syslog.rb (https://github.com/ryanmuller/folders2web.git) Ruby · 194 lines

23 return if RUBY_PLATFORM =~ %r/cygwin|java/i

24

25 stderr = IO::pipe

26

27 pid = fork do

81 return if RUBY_PLATFORM =~ %r/cygwin|java/i

82

83 stderr = IO::pipe

84

85 pid = fork do

subprocess.rs (https://github.com/librespot-org/librespot.git) Rust · 59 lines

30 Command::new(&args[0])

31 .args(&args[1..])

32 .stdin(Stdio::piped())

33 .spawn()?,

34 );

procsrv.rs (https://github.com/nickdesaulniers/rust.git) Rust · 112 lines

57 let mut cmd = Command::new(prog);

58 cmd.args(args)

59 .stdin(Stdio::piped())

60 .stdout(Stdio::piped())

61 .stderr(Stdio::piped());

62 add_target_env(&mut cmd, lib_path, aux_path);

63 for (key, val) in env {

92 let mut cmd = Command::new(prog);

93 cmd.args(args)

94 .stdin(Stdio::piped())

95 .stdout(Stdio::piped())

96 .stderr(Stdio::piped());

97 add_target_env(&mut cmd, lib_path, aux_path);

98 for (key, val) in env {

background_process.rb (https://github.com/timcharper/background_process.git) Ruby · 116 lines

24 def self.run(*command_with_args)

25 command = sanitize_command(command_with_args)

26 child_stdin, parent_stdin = IO::pipe

27 parent_stdout, child_stdout = IO::pipe

28 parent_stderr, child_stderr = IO::pipe

29

30 pid = Kernel.fork do

check-for-pkgconfig-packages (git://github.com/cliffmoon/effigy.git) Perl · 166 lines

3 use strict;

4

5 use IO::Pipe;

6 use POSIX ":sys_wait_h";

7

16 my ($parent_code, $child_code) = @_;

17

18 my $par_to_child = new IO::Pipe;

19 my $child_to_par = new IO::Pipe;

latex.rs (https://github.com/latex-lsp/texlab.git) Rust · 113 lines

62 let mut process: tokio::process::Child = Command::new("chktex")

63 .args(&["-I0", "-f%l:%c:%d:%k:%n:%m\n"])

64 .stdin(Stdio::piped())

65 .stdout(Stdio::piped())

background.pl (https://github.com/jtarchie/sinatra-on-perl.git) Perl · 46 lines

1 use strict;

2 use IO::Pipe;

3 use JSON::Any;

4

5 #inter process communication

6 my $pipe = IO::Pipe->new;

7

8 sub start_job_server{

mod.rs (https://github.com/tikv/tikv.git) Rust · 120 lines

14 let mut dl_child = Command::new("curl")

15 .arg(url)

16 .stdout(Stdio::piped())

17 .stderr(Stdio::null())

18 .spawn()?;

19 let mut tar_child = Command::new("tar")

20 .args(&["xzf", "-", "--to-stdout"])

21 .stdin(Stdio::piped())

22 .stdout(Stdio::piped())

appimage_bundle.rs (https://github.com/tauri-apps/tauri.git) Rust · 107 lines

30 Command::new("mksquashfs")

31 .arg("-version")

32 .stdout(Stdio::piped())

33 .stderr(Stdio::piped())

83 .arg(&sh_file)

84 .current_dir(output_path.clone())

85 .stdout(Stdio::piped())

86 .stderr(Stdio::piped())

registering.md (https://github.com/wycats/mio-book.git) Markdown · 27 lines

8

9 ```rs

10 let (mut reader, mut writer) = io::pipe();

11

12 // when an event occurs, the handler will be passed `1`

main.rs (https://github.com/denzp/cargo-wharf.git) Rust · 174 lines

85 let mut process = Command::new(current_exe()?);

86

87 process.stdout(Stdio::piped());

88 process.stderr(Stdio::inherit());

89

repl.rs (https://github.com/lark-exploration/lark.git) Rust · 85 lines

21 .arg("--")

22 .arg("repl")

23 .stdin(Stdio::piped())

24 .stdout(Stdio::piped())

open3.rb (https://github.com/panesofglass/ironrubyinaction.git) Ruby · 101 lines

45 #

46 def popen3(*cmd)

47 pw = IO::pipe # pipe[0] for read, pipe[1] for write

48 pr = IO::pipe

49 pe = IO::pipe

50

51 pid = fork{

macros.rs (https://github.com/nushell/nushell.git) Rust · 170 lines

49 .env("PATH", paths_joined)

50 .arg("--skip-plugins")

51 .stdout(Stdio::piped())

52 .stdin(Stdio::piped())

53 .stderr(Stdio::piped())

54 .spawn()

55 {

125 let mut process = match Command::new($crate::fs::executable_path())

126 .env("PATH", paths_joined)

127 .stdout(Stdio::piped())

128 .stdin(Stdio::piped())

129 .stderr(Stdio::piped())

130 .spawn()

131 {