Categories

Our Sponsors

Killing windows processes from the command line

Use TASKLIST and TASKKILL :  Good web site on this http://commandwindows.com/taskkill.htm

(F)orce Kill running processes for ImageName of java.exe
taskkill.exe /F /IM java.exe

NOTE: Wildcard ‘*’ for the /IM switch is accepted only with filters, use /FI
taskkill /F /FI “IMAGENAME eq note*”

Find all running Java processes command line
tasklist /FI “IMAGENAME eq java.exe”

Example:  I started 2 Calculator programs.

H:\>tasklist /FI [...]

Windows Scheduled Task Log Output

I needed to have a script list and kill processes and I needed that script to run out of a scheduled task.

It would be nice to know what happened with the script when it runs early in the morning.

I found  that if you call the script from the Windows Task Scheduler that you can give [...]

Too many processes script

KSH script to check the number of processes on a system and send an email if there are too many.

I liked this as it was simple, but had some nice elements that could be used elsewhere.

#!/bin/ksh
#
# Script to check for run away ftp processes.
# 04/08 – Mike Byers

HOST=`uname -n`
ADMINZ=”admin@somewhere.com”
# Add email Recipients
RECPTS=”email_add@somewhere.com”

# Let the user [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes