Skip to content

Instantly share code, notes, and snippets.

@relrod
Created December 7, 2009 17:20
Show Gist options
  • Save relrod/250945 to your computer and use it in GitHub Desktop.
Save relrod/250945 to your computer and use it in GitHub Desktop.
// Fufills ( http://rosettacode.org/wiki/Execute_a_System_Command ) in Pike.
int main(){
string response = Process.run("ls")
// response is now a map containing 3 fields
// stderr, stdout, and exitcode. We want stdout.
write(response["stdout"] + "\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment