8 lines
227 B
Text
8 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));
|
||
|
|
}
|