There's also a great command line tool by Mark Russinovich (which is easy to 
launch from a perl script) called pskill (you can get it at 
www.sysinternals.com).

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Jack D.
Sent: Monday, April 17, 2006 10:52 PM
To: 'Dan Jablonsky'; [email protected]
Subject: RE: stop a Windows application from within a Perl script


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Dan Jablonsky
> Sent: April 17, 2006 8:00 PM
> To: [email protected]
> Subject: stop a Windows application from within a Perl script
> 
> Hi all,
> I have a very simple script that pings the outside world and 
> reboots a router when it gets no answer to the ping anymore; 
> on top of that I need to stop and start again a windows application.
> I know how to start the app and I know how to stop it if it 
> were unix -> to stop the app, just kill the associated process ...
> How does one do this in Windows?

If you start the application using Win32::Process you would just kill it
using the pid (similar to unix) Win32::Process::KillProcess($pid)

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

Working together.  For life.(sm)
_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk 
- Portuguese - Svenska: www.cardinalhealth.com/legal/email

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

Reply via email to