John Serink wrote:
<snip>
# shows the task list like the task manager but of any computer
Hey, huge thanks for writing this script. It does exactly what I need showing task manager like output in neat columns. All of the columns I usualy show in task manager, which I find interesting, are displayed, too.

I'll use your code as the basis and will write a script that will periodically poll for the top 10 CPU hogs. Then I'll use some other means, such as Win32::API, to adjust process priorities.

Also thanks to all the other people posting in this thread. The observation that the CPu time is not a one-shot measure but requires two or more samples, like measuring velocity, for instance, is a good one and something I had initially overlooked. That is, I thought the Win32 API would have the magic already built in for CPU times but this code will do equally well for my purposes.

Lastly, seems the task info tool is an excellent 3rd party utility for the job. Very extensive info and a command-line interface, too.

Nice.

--
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to