Process explorer will work - used it recently myself for a similiar
problem
- start process explorer
- locate the instance of perl.exe in the process list thats chewing on the
cpu
- right mouse click select properties - it will show what script perl.exe
was called against.
|-+-
win32::setupsup might do what you need
Tom Bryan <[EMAIL PROTECTED]>
The author's website has the calc info...
http://www.bybyte.de/jmk/docs/Perl5/PerfLib/Perf_calc.html
"Glenn Meyer" <[EMAIL PROTECTED]>
I'm using the code below to map the O drive only if the user is a member of
group testgroup. It works, but sometimes I get error 1314, a required
privilege is not held by the client. I'm running the perl code from the
login script.
Anyone see what I might be missing? Or a better way to do this?
T
The author's example didn't use anything in the ().
if I change the line to my $trap_session = SNMP_Session->open_trap_session
()
I get the same error.
"
Hello,
I am using perl 623 on win2k, snmp_session v.83, and am trying to write a
script to listen for snmp traps. I tried using the following code example
from the author's website:
require 'SNMP_Session.pm';
use strict;
my $port = 162;
print "waiting for traps\n";
my $trap_session = S
I've been working with the win32:: changenotify module to detect files
copied into a particular directory, and then write them out to a db with
ODBC. The problem I've run into is my script is trying to process the files
before they are done copying.
I got around this by trying to move the file to
Using the following line worked for me... (changed startup to start)
if(!Win32::Lanman::ChangeServiceConfig("cchupela", '', 'Schedule',
{start =>'2'}))
(my lanman
\%ServiceConfig ))
> {
>print "service $ServiceConfig{name} successfully reconfigured\n";
> }
> else
> {
>print "It bombed\n";
> }
Try - %ServiceConfig = ( name => 'Schedule', start => '2', machine =>
&quo
start => 'Automatic',
machine => "".Win32::NodeName,
);
if (Win32::Daemon::ConfigureService( \%ServiceConfig ))
{
print "service $ServiceConfig{name} successfully reconfigured\n";
}
else
{
print "It bombed\n";
}
use
My take on it is that if your values for the counter data X1 was stored
at
$Objlist1->{Objects}->{$physicaldiskIndexnumber}->{Instances}->
{$InstanceNumber}->{Counters}->{$avgDiskSecTransferIndexNumber}->{Counter},
then you would add 1 to the $avgDiskSecTransferIndexNumber to get the
data f
I put together a script to gather the "% processor time" from the processor
object using win32::perflib. I've discovered that while it works most of
the time, on most systems, I've encountered a few systems that give me
back data that doesn't make sense, in the form of either a negative
number,
Can anyone point me in the right direction on using win32::OLE to attach a
file to a lotus notes email?
My script sends the email okay, but running the script with perl -w gives
me the following error:
(no attachment shows up)
Win32::OLE(0.1402) error 0x80020005: "Type mismatch"
in METHOD/PROP
I have a script that I've compiled as an executable with perl2exe. (used
build 618) The first line of my script is use Win32::Registry.
I've been running this script fine on a number of machines, NT workstation
+ SP5, and recently came across 2 machines that the compiled script would
not run on.
Joe,
thanks... looks like that should work for me.
Chris
"Joseph Youngquist"
Hi,
I'm attempting to use win32::changenotify to monitor a directory for new
files that get added. I'm creating a change notify object with the
FILE_NOTIFY_CHANGE_SIZE flag. When a new file is detected, I want to unzip
it with gzip, pull stuff out of it, and then delete it. Its not doing quite
wh
Paul,
thanks for the info. My problem appeared to be timing related. After I
reduced the amount of time I was sleeping in the script, I got rid of the
invalid state messages.
I'm using win32::daemon to run my script as a service, and it works great.
Whenever I encounter an unknown state of the service, I'm resetting it back
to the previous state, just like Dave Roth says in his doc. That works
fine, too. My problem is that if I leave the script run for a while, the
ev
Hi,
I'm using win32 daemon to run a script as a service. I'm collecting data
from perfmon, then I want to sleep for a minute, and repeat the collection.
When I sleep for 60 secs, I can't stop the service. I get 'the service
could not be stopped' or 'the service is not responding to the control
fu
19 matches
Mail list logo