Skip to content

Instantly share code, notes, and snippets.

@kurozumi

kurozumi/tasklist.py

Created Mar 23, 2016
Embed
What would you like to do?
【Python】Windowsのプロセス一覧を表示する方法
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
You can’t perform that action at this time.