Skip to content

Instantly share code, notes, and snippets.

@samuell
Created August 17, 2012 15:05
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 samuell/3379661 to your computer and use it in GitHub Desktop.
Save samuell/3379661 to your computer and use it in GitHub Desktop.
Simple command execution with output with subprocess
from subprocess import *
output = check_output(["ls", "-l"])
print(output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment