| Crates.io | exec |
| lib.rs | exec |
| version | 0.3.1 |
| created_at | 2016-03-25 02:49:17.157834+00 |
| updated_at | 2017-09-22 11:24:38.962911+00 |
| description | Use the POSIX exec function to replace the running program with another |
| homepage | |
| repository | https://github.com/faradayio/exec-rs |
| max_upload_size | |
| id | 4558 |
| size | 21,124 |
exec: A Rust library to replace the running program with anotherThis is a simple Rust wrapper around execvp. It can be used as follows:
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.