473,785 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find CPU Usage with Perl

5 New Member
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 13041
KevinADC
4,059 Recognized Expert Specialist
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 Recognized Expert Top Contributor
cpan Win32::Process: :Info
cpan Unix::Processor s

- Miller
Jul 2 '07 #3
isha123
5 New Member
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 Recognized Expert Top Contributor
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
2159
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 2.4, Perl 5.6.1, Python 2.3.2, Tcl 8.3), command ps -o "cmd rss vsize", results in kBytes: CMD RSS VSZ perl 984 2760 python 2556 4188 tclsh8.3 1100 2316
1
4510
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 Java or other "common" programming languages. I know about TIOBE's Programming Community Index, and Francois Labelle's statistics from sourceforge. Any pointers or insights will be highly appreciated
0
1166
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
3729
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
7596
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. Just about every source I can find on the 'net for processing subdirectories points you at Find::Find.  However, I'm trying to do something like this: enter directory open INDEX, ".\index.html" print INDEX HTMLheader
2
1850
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 can have a usage counter and statistics. Does anyone know where I can get usage-counter and statistics for a non web-based web ? Also, can some please direct me to a GOOD source for fonts, Clip Art, Word Art , etc ?
0
3582
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
1526
by: devid33 | last post by:
#!/usr/bin/perl use Getopt::Long; $l=@ARGV; print "The number of args is " . @ARGV;print "\n";
2
2664
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 other txt files. I've got about 7 input txt files, each of which is 14 - 17 MB. If I open Windows Task Manager's process list I can watch Perl using increasing amounts of memory as it reads in the txt files until it chokes, at about 1.7GB (I have 2GB...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9489
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10100
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4061
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.