Linux script to get most expensive processes

Laura Creighton lac at openend.se
Thu Aug 6 06:06:12 CEST 2015


If you are running this script with Python 2 write:

   if sys.platform.startswith('linux'):

to handle the case where you get linux or linux2 (and a few other weird
things some embedded systems give you ...)

Right now I think every linux system returns linux for Python 3, so it
is less of an issue (now, anyway).

Laura


More information about the Python-list mailing list