in reply to Installing Win32::KillProcess using PPM3

I neve got arond to making it a distribution for CPAN, let alone a PPM. It is pure perl so very easy to install. On Win32 make is not going to work. Why not read A Guide To Installing Modules. Anyway just copy the code to perl\site\lib\Win32\KillProcess.pm and it will work fine.

cheers

tachyon

  • Comment on Re: Installing Win32::KillProcess using PPM3

Replies are listed 'Best First'.
Re^2: Installing Win32::KillProcess using PPM3
by blackadder (Hermit) on Oct 07, 2004 at 09:31 UTC
    Cool,…. thanks for that

    It works a treat, but only on my local machine tho!

    This is the code I am running;
    use Win32::KillProcess qw( connectServer startProcess ); $server="sn02gev14a"; $user="MOD\blackadder_sup"; $pass="Perlmonks2004"; my $c = connectServer( $server, $user, $pass ); startProcess( $c, 'cmd.exe /c start \\oywps01\snp108');
    The error I am getting is this;
    C:\Perl>proc_start.pl Can't access WMI on remote machine sn02gev14a: OLE exception from "SWb +emLocator": Access is denied. Win32::OLE(0.1701) error 0x80070005: "Access is denied" in METHOD/PROPERTYGET "ConnectServer" at C:/Perl/site/lib/Win32/Ki +llProcess.pm line 30.
    Although my domain admins account ‘MOD\blackadder_sup’ and my user account are in the local admins group on the remote machine, however I still get the above error!

    Any thoughts?

    Thanks
    Blackadder