Function command_pipe

Source
pub fn command_pipe(
    command: &mut Command,
    piped: &mut Command,
) -> Result<Output, Error>
Expand description

Pipe stdout of command to stdin of piped command

ยงErrors

command_pipe can result in std::io::Error

  • when spawn or wait fail
  • when there is an issue with the stdout / stdin pipe (std::io::ErrorKind::BrokenPipe)