469,275 Members | 1,599 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Find CPU Usage with Perl

how can i find the cpu usage of my windows XP SP2 machine from command line? And also how can i execute this command with Perl? or is there anyother way to find CPU usage for XP machine using Perl?
Jul 2 '07 #1
4 12590
KevinADC
4,059 Expert 2GB
I think you want to check into the Win32 class of modules if you want to do this with perl. I don't know which Win32 module you should use though. You will have to search through them and find one that does what you want. Or maybe someone will have another suggestion.
Jul 2 '07 #2
miller
1,089 Expert 1GB
cpan Win32::Process::Info
cpan Unix::Processors

- Miller
Jul 2 '07 #3
Hi Miller,

Win32::Process::Info will only give me CPu usage of particular process only. How can i get the total CPU usage in percentage(%)? and can i use it to find the total CPU usage of the remote machine too?
Jul 3 '07 #4
miller
1,089 Expert 1GB
Don't know.

Follow the cross-forum post that you created at perlmonks

- M
Jul 3 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Peter Maas | last post: by
1 post views Thread by Gabriel Zachmann | last post: by
reply views Thread by Xah Lee | last post: by
1 post views Thread by Dan Jones | last post: by
2 posts views Thread by Dave Harman | last post: by
reply views Thread by cmartins | last post: by
2 posts views Thread by saanobhaai | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.