You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smart-top/smart/top/__main__.py

97 lines
3.1 KiB
Python

4 years ago
#!/usr/bin/env python
"""
smart-top, The Phi Technology LLC
Steve L. Nyemba & Michael Meade
The smart-top is a utility that enables to monitor processes (among other things) and use the data for:
- detecting anomalies
-
"""
4 years ago
break
except KeyboardInterrupt:
if 'log' in SYS_ARGS :
file = 'smart-top.csv' if SYS_ARGS['log'] == 1 else SYS_ARGS['log']
log[['name','cmd','cpu','mem','started','date','time','status','node']].to_csv(file,index=False)
print ()
print ("... Exiting, Thanks for using smart-top")
# pass