runing perl unix script in windows 2000
here is a script which runs in unix
i want this script to run in windows what changes i need to do to this to make it work
also where can i get a perl interpretor for windows 2000 to be installed
#!/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*$/;
if (defined $2) {
print "em_result=$2\n";
} else {
die "Error collecting data\n";
}
i understand i need to change the #! to my perl lib in windows
what about the $ENV{PATH} what changes i need to make
|