Created
May 16, 2017 19:56
-
-
Save hmm01i/11a4f537de90b0bd926e72e2da3a5bed to your computer and use it in GitHub Desktop.
example of 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
import shlex, subprocess | |
cmd = 'ls -la' | |
shcmd = shlex.split(cmd) | |
p = subprocess.Popen(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment