473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 13004
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

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

Similar topics

3
by: Peter Maas | last post by:
In a recent discussion somebody claimed that python executable has a huge memory consumption compared to perl and tcl, about 18 MB. I didn't believe that and checked on my machine (SusE 7.3, Linux...
1
by: Gabriel Zachmann | last post by:
For some reason, I would like to have some statistics about how often Python is used in the *scientific* communities (such as astronomy, genetics, electrical engineering, ...), as opposed to C++ or...
0
by: Xah Lee | last post by:
© # -*- coding: utf-8 -*- © # Python © © # once a module is loaded © # import mymodule © # one can find all the names it © # export with dir() © © import sys © print dir(sys)
1
by: Xah Lee | last post by:
suppose you want to do find & replace of string of all files in a directory. here's the code: ©# -*- coding: utf-8 -*- ©# Python © ©import os,sys © ©mydir= '/Users/t/web'
1
by: Dan Jones | last post by:
I'm writing a script to process a directory tree of images.  In each directory, I need to process each image and generate an HTML file listing all of the images and links to the subdirectories....
2
by: Dave Harman | last post by:
I created a web site using FrontPage 2002 but it is not Web Based - I used Front Page to generate the HTML code for the pages. The documentation says that only Web Based Front Page generated sites...
0
by: cmartins | last post by:
Hi All! I have a perl script which uses these modules: ProcessAdapter.pl use File::Copy; use FileHandle; use Class::Struct;
1
by: devid33 | last post by:
#!/usr/bin/perl use Getopt::Long; $l=@ARGV; print "The number of args is " . @ARGV;print "\n";
2
by: saanobhaai | last post by:
Hello, This is really a reply to http://www.thescripts.com/forum/thread50187.html I have a script that reads in a bunch of data from txt files, then does a bunch of calculations, and outputs...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.