rrand Posted September 28, 2004 Posted September 28, 2004 Does anyone have any idea how I can get the CPU usage of a process? I want to write a script to alert me if a process starts hogging system resources and then use AutoIt to do something to it to fix it if it's an issue I'm aware of. I know you can use pstat.exe to find out a lot of information, but I'm not sure how to get % CPU load time like in Windows Task Manager. Any help would be appreciated! Thanks.
rrand Posted September 29, 2004 Author Posted September 29, 2004 Also there is a program that comes with Windows Resource kits called PMON.exe. It has the CPU load percentage in it for each process, but it runs in DOS in real time. I can't seem to just get a text file snapshot of it or otherwise redirect the output to a file. It runs until you hit Q.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now