"Rosenstein, Leon" wrote:

> Hi again everyone,
>
> Again newbie here so go easy
>
> In a script I have a section that looks like this
>
> #Finally we have to load all extensible counters
> system("lodctr faxperf.ini") or die "sorry couldn't do $!";
> system("lodctr dnsperf.ini") or die "sorry couldn't do $!";

Hi Luke,

I am wondering why you are doing this in Perl, rather than a batch file.  I suspect 
that would would get better performace of the commands shown that way.  From Perl, 
there is the overhead of calling the shell command interpreter with each line.  Is 
this part of a larger program?

I am also sort of curious about the command you use.  I gather, from your usage, that 
it is intended to load the counter list for each service from its perfmon ini file.  
It is not documented, though, in the user interface.  lodcntr /? or /help renders no 
output.  Generally, any utility meant for direct manipulation will ahve command-line 
documentation available with one of these switches.  When the program succeeds, do you 
get the results desired: is an appropriate counter added to the performance monitor?

Joseph





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to