Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created February 12, 2013 14:01
Show Gist options
  • Save bstrie/4770066 to your computer and use it in GitHub Desktop.
Save bstrie/4770066 to your computer and use it in GitHub Desktop.
fn main() {
run_command("ls");
run_command("ls -l");
run_command("ls -l -a");
run_command("lua LoadGen.lua style=pointer_rust -spec=gl -version=3.3 \
-profile=core core_3_3");
}
fn run_command(command: &str) -> int {
let split = command.split_char(' ');
let (&prog, args) = match split {
[] => die!(),
[ref head, ..tail] => (head, tail)
};
return core::run::run_program(prog, args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment