process_check_script_for_cron
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| process_check_script_for_cron [2012/04/06 15:10] – k2patel | process_check_script_for_cron [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| <code python> | <code python> | ||
| - | #!/bin/env python | + | #!/usr/bin/env python |
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
| """ | """ | ||
| - | Created on Wed Apr 4 14: | + | Created on Thu Aug 4 14: |
| @author: k2patel@hotmail.com | @author: k2patel@hotmail.com | ||
| Line 56: | Line 56: | ||
| import psutil | import psutil | ||
| - | #procfs.utilist() | + | # reset running variable |
| running = 0 | running = 0 | ||
| - | #psutil. | + | |
| for proc in psutil.get_process_list(): | for proc in psutil.get_process_list(): | ||
process_check_script_for_cron.1333725036.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
