Veli-Pekka Tätilä wrote:
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.
Try also to use Win32::Process::Perf. A sample script is in the module
included.
--
QA
ISIS Information Systems
Austria tel: (+43) 2236 27551 150 Fax: 2236 21081
Visit our web site http://www.isis-papyrus.com
---------------------------------------------------------------
This e-mail is only intended for the recipient and not legally
binding. Unauthorised use, publication, reproduction or
disclosure of the content of this e-mail is not permitted.
---------------------------------------------------------------
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs