Capture a Child's Output


The following echo_output program demonstrates how to run a child process in Rust and capture its output. It runs echo with Command::output(), which waits for the child to finish and collects its stdout, stderr, and exit status.

This zip file contains the complete crate.

src/main.rs