RE: How do I find what web scripts are calling PERL.EXE?

2004-11-17 Thread cchupela
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. |-+-

Re: pass keystrokes

2002-03-15 Thread cchupela
win32::setupsup might do what you need Tom Bryan <[EMAIL PROTECTED]>

Re: Win32::PerfLib

2001-12-14 Thread cchupela
The author's website has the calc info... http://www.bybyte.de/jmk/docs/Perl5/PerfLib/Perf_calc.html "Glenn Meyer" <[EMAIL PROTECTED]>

Win32::Lanman group membership test

2001-09-21 Thread cchupela
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

RE: snmp_session problem

2001-05-11 Thread cchupela
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. "

snmp_session problem

2001-05-11 Thread cchupela
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

changenotify

2001-04-02 Thread cchupela
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

Re: changing service config

2001-03-29 Thread cchupela
Using the following line worked for me... (changed startup to start) if(!Win32::Lanman::ChangeServiceConfig("cchupela", '', 'Schedule', {start =>'2'})) (my lanman

RE: changing service config

2001-03-29 Thread cchupela
\%ServiceConfig )) > { >print "service $ServiceConfig{name} successfully reconfigured\n"; > } > else > { >print "It bombed\n"; > } Try - %ServiceConfig = ( name => 'Schedule', start => '2', machine => &quo

changing service config

2001-03-29 Thread cchupela
start => 'Automatic', machine => "".Win32::NodeName, ); if (Win32::Daemon::ConfigureService( \%ServiceConfig )) { print "service $ServiceConfig{name} successfully reconfigured\n"; } else { print "It bombed\n"; } use

Re: Win32::PerfLib -- PERF_AVERAGE_TIMER

2001-03-13 Thread cchupela
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

cpu utilization and win32::perflib

2001-03-09 Thread cchupela
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,

lotus notes and OLE

2001-01-30 Thread cchupela
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

odd date problem

2001-01-24 Thread cchupela
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.

Re: win32::changenotify problem

2001-01-24 Thread cchupela
Joe, thanks... looks like that should work for me. Chris "Joseph Youngquist"

win32::changenotify problem

2001-01-23 Thread cchupela
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

Re: perl as a service

2000-12-06 Thread cchupela
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.

perl as a service

2000-11-29 Thread cchupela
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

win32::daemon

2000-11-02 Thread cchupela
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