Guest User

Untitled

a guest
Aug 26th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. import subprocess
  2.  
  3. print(*[line.split() for line in subprocess.check_output("tasklist").splitlines()])
  4.  
  5. from subprocess import Popen
  6. out = []
  7.  
  8. with Popen('tasklist') as tasklist:
  9. try:
  10. out.append(tasklist.stdout.readlines())
  11. except AttributeError:
  12. print('n'.join(out))
  13.  
  14. ��� ��ࠧ� PID ��� ��ᨨ � ᥠ�� ������
  15. ========================= ======== ================ =========== ============
  16. System Idle Process 0 Services 0 4 ��
  17. System 4 Services 0 672 ��
  18. smss.exe 336 Services 0 320 ��
  19. csrss.exe 440 Services 0 4�412 ��
  20. wininit.exe 524 Services 0 576 ��
  21.  
  22. ...
  23. WmiPrvSE.exe 35080 Services 0 5�596 ��
Add Comment
Please, Sign In to add comment