Skip to content

Instantly share code, notes, and snippets.

@hmm01i
Created May 16, 2017 19:56
Show Gist options
  • Save hmm01i/11a4f537de90b0bd926e72e2da3a5bed to your computer and use it in GitHub Desktop.
Save hmm01i/11a4f537de90b0bd926e72e2da3a5bed to your computer and use it in GitHub Desktop.
example of subprocess
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