Created
August 17, 2012 15:05
-
-
Save samuell/3379661 to your computer and use it in GitHub Desktop.
Simple command execution with output with subprocess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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