Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95061

Re: Linux script to get most expensive processes

From Laura Creighton <lac@openend.se>
Subject Re: Linux script to get most expensive processes
References <87twsehkmk.fsf@Equus.decebal.nl><mpr8n1$gtj$1@ger.gmane.org>
Date 2015-08-06 06:06 +0200
Newsgroups comp.lang.python
Message-ID <mailman.1264.1438833978.3674.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Linux script to get most expensive processes Cecil Westerhof <Cecil@decebal.nl> - 2015-08-04 22:19 +0200
  Re: Linux script to get most expensive processes Emile van Sebille <emile@fenx.com> - 2015-08-04 13:52 -0700
    Re: Linux script to get most expensive processes Cecil Westerhof <Cecil@decebal.nl> - 2015-08-04 23:30 +0200
      Re: Linux script to get most expensive processes MRAB <python@mrabarnett.plus.com> - 2015-08-04 23:00 +0100
        Re: Linux script to get most expensive processes Cecil Westerhof <Cecil@decebal.nl> - 2015-08-05 01:14 +0200
      Re: Linux script to get most expensive processes Emile van Sebille <emile@fenx.com> - 2015-08-04 15:12 -0700
        Re: Linux script to get most expensive processes Cecil Westerhof <Cecil@decebal.nl> - 2015-08-05 01:17 +0200
  Re: Linux script to get most expensive processes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-05 12:56 +0200
  Re: Linux script to get most expensive processes Laura Creighton <lac@openend.se> - 2015-08-06 06:06 +0200

csiph-web