Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created March 23, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurozumi/e5cddcdba56722ec9fd4 to your computer and use it in GitHub Desktop.
Save kurozumi/e5cddcdba56722ec9fd4 to your computer and use it in GitHub Desktop.
【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