[Tutor] Process Taking more than 10%

Alan Gauld alan.gauld at blueyonder.co.uk
Fri Aug 20 05:55:22 CEST 2004


> >There are easy ways to do this on both Unix and Windows and
> >there are harder ways. But if its only one OS we might as
> >well stick to the easy ways... :-)

> I think on linux you would use popen and ps, 

Nope, the easy way is to use ps and awk...

> but how is it done on windows?

Assuming NT/W2K/XP
Open Task Manager, look at processes and sort by CPU... :-)

In both cases Python is the harder route. Right tool for 
the job... ;-)

Alan G.


More information about the Tutor mailing list