For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2004 > Need help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Need help
Stu Loventhal

2004-07-28, 8:56 pm

I need a very simple perl script that will do the following:
1. Determine the PID for process xxx.exe
2. Issue a KILL -9 type command for that PID.

I can do it manually but want to automate the process
I tried the following:
A. PS into a file
B. Grep file for the process I want and output to another file (now
contains only that process)
C. Don't know how to get the PID out of that file to feed to my kill
command.

System is Windows 2000 Prof.

Thanks in advance.

Stu


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com