SHARE
TWEET

Untitled

a guest Jun 18th, 2017 46 in 5 hours
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import psutil
  2.  
  3. process_name = 'smsserver'
  4.  
  5. for proc in psutil.process_iter():
  6.     print(proc.name())
  7.     if proc.name() == process_name:
  8.         print('task running')
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top