[Tutor] Process Taking more than 10%

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


Or top, this is available on both *nix and Windows.

There is even wintop for a slightly GUIified version.

Alan G

----- Original Message ----- 
From: "Chad Crabtree" <flaxeater at yahoo.com>
To: "Alan Gauld" <alan.gauld at blueyonder.co.uk>
Cc: <tutor at python.org>
Sent: Friday, August 20, 2004 3:08 PM
Subject: Re: [Tutor] Process Taking more than 10%


> 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