Skip to content

Instantly share code, notes, and snippets.

@chadbrewbaker
Created July 10, 2020 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadbrewbaker/ee849f1efc0dd68941eaeb87c04a8814 to your computer and use it in GitHub Desktop.
Save chadbrewbaker/ee849f1efc0dd68941eaeb87c04a8814 to your computer and use it in GitHub Desktop.
Exploring the linux container on https://play.rust-lang.org/
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