# `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.