CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
collect Stats in windows

 



kumarbargale
New User

Jan 23, 2008, 8:50 PM

Post #1 of 6 (7658 views)
collect Stats in windows Can't Post

Hi All,

i have to write script for collect the cpu statistics and memory statistics on the window operating system.

cpu stat include process waiting for CPU and CPU utiliztion and memory stat include available memory free memory,pageing,swapping,scan rate, waited the information i have to collect, please any one help me out, how i will start,



thanks in advance

Regards

Shantkumar.


KevinR
Veteran


Jan 23, 2008, 10:22 PM

Post #2 of 6 (7657 views)
Re: [kumarbargale] collect Stats in windows [In reply to] Can't Post

Start by searching through the Win32 class of modules on CPAN. I know there is one called Win32::SystemInfo but I have never used it so can't help with code or usage. Read the documentation , maybe it will work for your application.
-------------------------------------------------


kumarbargale
New User

Jan 28, 2008, 4:51 AM

Post #3 of 6 (7597 views)
Re: [kumarbargale] collect Stats in windows [In reply to] Can't Post

hi Kevin,

win32::sysinfo is certified on Window 2000/XP/SERVER or not.



Thanks

Regards

Shantkumar


KevinR
Veteran


Jan 28, 2008, 10:13 AM

Post #4 of 6 (7596 views)
Re: [kumarbargale] collect Stats in windows [In reply to] Can't Post

I don't know
-------------------------------------------------


tusharja
Novice

Jan 30, 2008, 8:20 PM

Post #5 of 6 (7559 views)
Re: [kumarbargale] collect Stats in windows [In reply to] Can't Post

hi all,

i am having perl which is coming with oracle. i have set the path of perl5lib to D:\app\shantkumars\product\11.1.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-thread and PATH to D:\app\shantkumars\product\11.1.0\db_1\perl\site\5.8.3\lib\MSWin32-x86-multi-thread in the environment variables in windows.

from this path i m able to run the test program .

using perl filename.pl

when i m tryung to install WIN32:systeminfo from this path D:\app\shantkumars\product\11.1.0\db_1\perl\5.8.3\lib\MSWin32-x86-multi-thread it is giving the below error



D:\app\shantkumars\product\11.1.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread>p
erl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Win32::API 0.4 not found.

Error: Unable to locate installed Perl libraries or Perl source code.

It is recommended that you install perl in a standard location before
building extensions. Some precompiled versions of perl do not contain
these header files, so you cannot build extensions. In such a case,
please build and install your perl from a fresh perl distribution. It
usually solves this kind of problem.

(You get this message, because MakeMaker could not find "C:\perl\5.8.3\lib\MSWin
32-x86-multi-thread\CORE\perl.h")




please tell me do i need to install perl instead of using perl whcih comes with oracle.or do i need to set the path to some othaer location



please help me out


KevinR
Veteran


Jan 30, 2008, 10:03 PM

Post #6 of 6 (7556 views)
Re: [tusharja] collect Stats in windows [In reply to] Can't Post

tusharja,

please do not double-post the same question, and especially not in another persons thread.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives