Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a program/utility to monitor a process running in Windows 7 (actually it's a Java process ran from .jnlp). and that can send an e-mail alert or trigger any kind of script so I can be aware that it has crashed ?

From what i've seen there's nothing like that.

Any ideas ?

share|improve this question
up vote 3 down vote accepted
tasklist | find "java.exe"
IF %ERRORLEVEL% EQU 1  blat.exe ---
sleep 10
goto :begin

you'll need blat.exe whick most used tool for sending mails via batch scripts sleep should be built-in windows 7. But this will work only if you have only one java.exe running... You can use some external tools to start a process and its PID for maximum usability

share|improve this answer
Excellent ! Right what i was looking for; is it possible to get a .bat to run as a service ? I saw some applications around for .exe2service did you try .bat ? – Disco Jul 6 '12 at 8:45
may be this could help: – npocmaka Jul 6 '12 at 9:05
!!! I LOVE YOU :) – Disco Jul 6 '12 at 12:54
I like bmail too: like blat but much leaner and smaller. free too. – Sun May 19 at 22:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .