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

How to kill a crashed program like Word that wasn't starter by a perl script?

Originally posted as a Categorized Question.

  • Comment on How to kill a crashed program like Word that wasn't starter by a perl script?

Replies are listed 'Best First'.
Answer: How to kill a crashed program like Word that wasn't starter by a perl script?
by Dog and Pony (Priest) on Jun 12, 2002 at 23:57 UTC
    For an example on how to do this on computers in the NT family, including windows 2000, and probably XP, see A killall for Windows. It uses Win32::PerfLib to find process IDs, and Win32::Process to kill the found process(es).

    It should not be too hard to modify the script for other needs, either. :)

    This will not work on 95/98 however.

Answer: How to kill a crashed program like Word that wasn't starter by a perl script?
by Rex(Wrecks) (Curate) on Jun 12, 2002 at 23:47 UTC
Re: How to kill a crashed program like Word that wasn't starter by a perl script?
by Anonymous Monk on Jun 12, 2002 at 23:01 UTC
    Under Windows, give the three-fingered salute (ctrl-alt-del) to get the task list; then choose "End Task" for the stalled task (usually bracketed with "Not Responding"). You may have to do this twice; if it's truly recalictrant, a window will come up in a few seconds asking if you want to kill with extreme prejudice. Of course, you do.

    Originally posted as a Categorized Answer.