Created
July 10, 2020 13:56
-
-
Save chadbrewbaker/ee849f1efc0dd68941eaeb87c04a8814 to your computer and use it in GitHub Desktop.
Exploring the linux container on https://play.rust-lang.org/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::process::Command; | |
fn main() { | |
let output = Command::new("ls") | |
.arg("/bin") | |
.output() | |
.expect("failed to execute process"); | |
println!("stdout: {}",String::from_utf8_lossy(&output.stdout)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment