7 lines
227 B
Text
7 lines
227 B
Text
use std::process::Command;
|
|
fn main() {
|
|
let output = Command::new("ls").output().unwrap_or_else(|e| {
|
|
panic!("failed to execute process: {}", e)
|
|
});
|
|
println!("{}", String::from_utf8_lossy(&output.stdout));
|
|
}
|