pub fn command_pipe_base<T>(
    command: &mut Command,
    piped: &mut Command,
    piped_stdout: T
) -> Result<Output, Error> where
    T: Into<Stdio>, 
Expand description

Pipe stdout of command to stdin of piped command, and pipe stdout of piped to piped_stdout

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)