[Tutor] Process Taking more than 10%

Chad Crabtree flaxeater at yahoo.com
Fri Aug 20 16:08:36 CEST 2004


It just occurred to me that there must be a command line process
monitor 
and terminator.  I found one
http://www.beyondlogic.org/solutions/processutil/processutil.htm
It would not be to big a problem to moniter and parse it's output and

aggregate  the averages.

Alan Gauld wrote:

>>>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.
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
>  
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Tutor mailing list