blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys

Where can I install Win32::KillProcess using PPM3 rather than downloading the zip file and the 'make file, make maker,....etc' which never works for me!

I have added every repository listed in Perl docs but the search did not yield the requested module!

Thanks
Blackadder
  • Comment on Installing Win32::KillProcess using PPM3

Replies are listed 'Best First'.
Re: Installing Win32::KillProcess using PPM3
by radiantmatrix (Parson) on Oct 06, 2004 at 14:50 UTC

    Perhaps your difficulty comes from the fact that you're looking for Win32::Process::KillProcess?

    radiantmatrix
    require General::Disclaimer;
      According to this node by the one and only Mr Tachyon. http://www.perlmonks.org/index.pl?node_id=336223 I am not sure!!!So I will try the script with Win32::Process::KillProcess, maybe it'll work.
      Blackadder
Re: Installing Win32::KillProcess using PPM3
by johnnywang (Priest) on Oct 06, 2004 at 18:54 UTC
    It is Win32::KillProcess, I just installed it a few days ago, it's a pure perl module, I simply downloaded and put it in the @INC (or perl\site\lib), works fine for me.
Re: Installing Win32::KillProcess using PPM3
by tachyon (Chancellor) on Oct 07, 2004 at 00:17 UTC

    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

      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