Linux script to get most expensive processes
Cecil Westerhof
Cecil at decebal.nl
Tue Aug 4 19:17:39 EDT 2015
On Wednesday 5 Aug 2015 00:12 CEST, Emile van Sebille wrote:
> 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'
I already use sys, so I think sys.platform is a little better. ;-)
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list