https://github.com/faradayio/exec-rs
Rust wrapper around the C execvp function, which replaces the current process with the specified program and arguments.
https://github.com/faradayio/exec-rs
Last synced: 10 months ago
JSON representation
Rust wrapper around the C execvp function, which replaces the current process with the specified program and arguments.
- Host: GitHub
- URL: https://github.com/faradayio/exec-rs
- Owner: faradayio
- License: apache-2.0
- Created: 2016-03-24T23:19:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T00:30:06.000Z (about 3 years ago)
- Last Synced: 2025-07-03T21:44:04.439Z (11 months ago)
- Language: Rust
- Size: 3.99 MB
- Stars: 19
- Watchers: 6
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE.txt
Awesome Lists containing this project
README
# `exec`: A Rust library to replace the running program with another
[](https://crates.io/crates/exec) [](http://www.apache.org/licenses/LICENSE-2.0) [](https://travis-ci.org/faradayio/exec-rs)
[Documentation](http://faradayio.github.io/exec-rs/exec/index.html)
This is a simple Rust wrapper around `execvp`. It can be used as follows:
```rust
let err = exec::Command::new("echo")
.arg("hello").arg("world")
.exec();
println!("Error: {}", err);
```
Note that if `exec` returns, it will always return an error. There's also
a lower-level `exec::execvp` function if you need to use it.