popen_rs - Simple Process Spawning Library
Description
This small Rust library simplifies the process of running system commands by
spawning a new child process and reading the content of either the stdout
or stderr stream handle.
Usage
- Import the popen_rs crate to your source file
use Popen;
Methods
spawn
Spawns a new child process and captures the handles of stdout and stderr. This function will return the content of either stdout or stderr.
pid
Requests the OS specified process identifier of the current child process.
Example
use Popen;
License
This project is published under the MIT License.