LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-19-2005, 10:04 AM   #1
anirudh
Member
 
Registered: Aug 2004
Location: bangalore india
Posts: 50

Rep: Reputation: 15
5 min load average


hi this is an emergency if any one can help me to find the 5 min load average on a windows 200 box using net statistics server command
through a perl script on windows

i have a linux script which does this but have no clue how to make this work in windows plz can anyone help this is utter emergency

the linux code is

#!/usr/local/bin/perl
# Description: 5-min load average.
# Sample User Defined Event monitoring script.
$ENV{PATH} = "/bin:/usr/bin:/usr/sbin";
$DATA = `uptime`;
$DATA =~ /average:\s+([\.\d]+),\s+([\.\d]+),\s+([\.\d]+)\s*$/;( knoi need explanation for this line as well) )
if (defined $2) {
print "em_result=$2\n";
} else {
die "Error collecting data\n";
}

the net statistics server helps to get the values
can anyone help me with a pl script for windows which does the same
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
load average? ampex189 Linux - Newbie 2 03-06-2005 08:17 PM
load average approaching 20 kfiralfia Linux - General 5 09-29-2004 10:35 AM
RH 8 load average is messed up Mike-BB Red Hat 1 07-30-2004 06:59 AM
Load average 1.0, 1.0, 1.0 ? belated Linux - Newbie 4 11-30-2003 04:49 PM
Average load Cyth Linux - General 1 01-22-2002 04:33 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration