system
Cross-platform crate to easily run shell commands, similar to the C system function.
Usage
system and system_output
For simple use cases where you just need the result of a system command, the system and system_output functions can be used.
system inherits the stdout, stderr, and stdin from the parent process whereas system_output captures stdout and stderr and does not inherit an stdin.
An example of using system,
use system;
An example of using system_output,
use system_output;
std::process::Command::system
For more complex uses cases where the underlying Command has to be modified before running the command, the system::System trait is implemented for Command.
The trait adds the function Command::system to create Commands that execute shell commands.
For example,
use Command;
use System;