Skip to content

Instantly share code, notes, and snippets.

Created Mar 23, 2016
What would you like to do?
import subprocess
cmd = 'tasklist'
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
for line in proc.stdout:
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment