Hi List ,


 My code is this :

I'm just trying to capture my Services on my machine . 

#!/usr/bin/perl - w

use Win32::Service;
use diagnostics;

my $hostname = hpgwcfede2;
my %hash;


Win32::Service::GetServices($hostname,%hash);


When I execute the script it says this :


Uncaught exception from user code:
        Usage: Win32::Service::GetServices(lpHostName, hv) at
C:\DOCUME~1\-ACHRI
~1.FED\LOCALS~1\Temp\dir75E.tmp\Delete service.pl line 17.
Press any key to continue . . .


Am I doing something wrong ??

It looks as simple as plugging in a machine name but it looks as thought I'm
my usage is wrong ?

I'm not sure ....



Thanks
Chris Federico
Dep:AITS
e-mail : [EMAIL PROTECTED]
(631) 233-6647
Systems Engineer



-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

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

Reply via email to