On Sunday, May 12, 2002, at 04:53 , John West wrote:

> I found two ways, both of which are OS-specific.  One
> is this perl:
>
> http://www.roth.net/perl/scripts/scripts.asp?ProcList.pl

that looks like the basic phrameWork for a piece of code.

all you would need to do is extend it with a Getopt::Long
interface to take into account that you had a pid or
list of pids, or alternatively a name you wished to kill off.

you may want to look directly at

        perldoc Win32::Process

cf
        http://search.cpan.org/doc/GSAR/libwin32-0.18/Process/Process.pm

specifically
        
"Win32::Process::KillProcess($pid, $exitcode)

Terminates any process identified by $pid. $exitcode will be set to the 
exit code of the process."


ciao
drieux

---

the CPAN can be your friend.


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

Reply via email to