When i try to kill with Win32::KillProcess any SYSTEM process i get:

"Could not kill 180: Access Denied at C:/Perl/site/lib/Win32/KillProcess.pm 
line 42"

El Martes 25 Mayo 2004 13:47, Anderson, Mark (Service Delivery) escribió:
> How does the environment that Stonebeat is in affect the environment the
> system process was started in? I don't see how it can be aware of the debug
> flag...
>
> You could try Win32::KillProcess  (not Win32::Process::KillProcess) - it
> uses WMI.
> You can get it here: http://www.perlmonks.org/index.pl?node_id=336024
>
>
> Kind regards,
>
> Mark Anderson
> SMS Deployment
> The Royal Bank of Scotland
> 113 Dundas Street, Edinburgh, EH3 5DE
> http://www.manufacturing.rbs.co.uk/GTrswi/
>
> > -----Original Message-----
> > From:       StoneBeat [SMTP:[EMAIL PROTECTED]
> > Sent:       Tuesday, May 25, 2004 12:38 PM
> > To: Schichmanter, EithanX
> > Cc: [EMAIL PROTECTED]
> > Subject:    Re: kill process running as "SYSTEM"
> >
> > *** WARNING : This message originates from the Internet ***
> >
> > Yes, i can see "1" but when i try to kill a process  don't die
> >
> > El Martes 25 Mayo 2004 13:33, escribiste:
> > > What happens when you do the following:
> > >
> > > $ENV{'DEBUG_PROCESS'} = 1; # define as true
> > > print "$ENV{'DEBUG_PROCESS'}\n";
> > >
> > >
> > > it should print '1'. If not, something really strange is going on with
> >
> > your
> >
> > > system.
> > >
> > > If you mean that you still can't kill the process, that's another
> >
> > problem.
> >
> > > If you can assign the value in the script session, at least you know
> > > you have the correct flag set (as you've mentioned before).
> > >
> > > HTH
> > >
> > > Eitan.
> > >
> > > >-----Original Message-----
> > >
> > > From: [EMAIL PROTECTED]
> >
> > [mailto:perl-win32-
> >
> > > >[EMAIL PROTECTED] On Behalf Of StoneBeat
> > > >Sent: Tuesday, May 25, 2004 14:25
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: kill process running as "SYSTEM"
> > > >
> > > >don't work :(
> > > >
> > > >El Martes 25 Mayo 2004 12:21, Schichmanter, EithanX escribió:
> > > >> To set an environment variable you could try:
> > > >>
> > > >> $ENV{'DEBUG_PROCESS'} = 1; # define as true
> > > >> # $ENV{'DEBUG_PROCESS'} = undef # if you just want to set it
> > > >>
> > > >> This should set the environment variable for the script session.
> > > >>
> > > >> As for Win32::Process::KillProcess, I remember having difficulties
> >
> > with
> >
> > > >> it, but I followed the documentation and it worked beautifully.
> > > >>
> > > >> HTH
> > > >>
> > > >> All the best,
> > > >>
> > > >> Schichmanter Eitan
> > > >> SDM Team Developer,
> > > >> Petah-Tikva, Israel
> > > >> Intel(r)
> > > >> [EMAIL PROTECTED]
> > > >> phone: +972-3-9207046
> > > >> ------------------------------
> > > >>
> > > >> Schichmanter Eitan,
> > > >> CM Consultant and Developer,
> > > >> LMB-Consulting LTD.
> > > >> [EMAIL PROTECTED]
> > > >> www.lmb.co.il
> > > >>
> > > >> >-----Original Message-----
> > > >>
> > > >> From: [EMAIL PROTECTED]
> > > >> [mailto:perl-win32-
> > > >>
> > > >> >[EMAIL PROTECTED] On Behalf Of StoneBeat
> > > >> >Sent: Tuesday, May 25, 2004 13:10
> > > >> >To: [EMAIL PROTECTED]
> > > >> >Subject: kill process running as "SYSTEM"
> > > >> >
> > > >> >hi, i want to know if someone knows a valid method to kill process
> > > >>
> > > >> running
> > > >>
> > > >> >as
> > > >> >SYSTEM, i try Win32::Process::KillProcess but they can't kill the
> > > >>
> > > >> process.
> > > >>
> > > >> >I know that in windows if some process wants to kill a system
> >
> > process
> >
> > > >> must
> > > >>
> > > >> >have "DEBUG_PROCESS" flag enabled but i don't know how set it.
> > > >> >
> > > >> >thanks
> > > >> >
> > > >> >_______________________________________________
> > > >> >Perl-Win32-Users mailing list
> > > >> >[EMAIL PROTECTED]
> > > >> >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > > >>
> > > >> _______________________________________________
> > > >> Perl-Win32-Users mailing list
> > > >> [EMAIL PROTECTED]
> > > >> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> > > >
> > > >_______________________________________________
> > > >Perl-Win32-Users mailing list
> > > >[EMAIL PROTECTED]
> > > >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> >
> > _______________________________________________
> > Perl-Win32-Users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
> The Royal Bank of Scotland plc, Registered in Scotland No. 90312.
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
>
> The Royal Bank of Scotland plc is authorised and regulated by the Financial
> Services Authority and represents The Royal Bank of Scotland Marketing
> Group. The Bank sells life policies, collective investment schemes and
> pension products and advises only on the Marketing Group's range of these
> products and on a With-Profit Bond produced by Norwich Union Life (RBS)
> Limited.
>
> This e-mail message is confidential and for use by the addressee only. If
> the message is received by anyone other than the addressee, please return
> the message to the sender by replying to it and then delete the message
> from your computer. Internet e-mails are not necessarily secure. The Royal
> Bank of Scotland plc does not accept responsibility for changes made to
> this message after it was sent.
>
> Whilst all reasonable care has been taken to avoid the transmission of
> viruses, it is the responsibility of the recipient to ensure that the
> onward transmission, opening or use of this message and any attachments
> will not adversely affect its systems or data. No responsibility is
> accepted by The Royal Bank of Scotland plc in this regard and the recipient
> should carry out such virus and other checks as it considers appropriate.
>
>
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to