11 lines
304 B
Rust
11 lines
304 B
Rust
use std::process::Command;
|
|
use std::io::{Write, self};
|
|
|
|
fn main() {
|
|
let output = Command::new("/bin/cat")
|
|
.arg("/etc/fstab")
|
|
.output()
|
|
.expect("failed to execute process");
|
|
|
|
io::stdout().write(&output.stdout);
|
|
}
|