Linux script to get most expensive processes

Emile van Sebille emile at fenx.com
Wed Aug 5 00:12:05 CEST 2015


On 8/4/2015 2:30 PM, Cecil Westerhof wrote:
> On Tuesday  4 Aug 2015 22:52 CEST, Emile van Sebille wrote:

>> My platform shows as linux2 and it worked fine for me when checking
>> for that.
>
> I heard that that was possible also, but none of my systems gives
> this. I should change it.

You could also use the platform module:


 >>> import platform
 >>> platform.system()
'Linux'
 >>>


Emile




More information about the Python-list mailing list