Killing parent process does not kill child process

C

Chris Coates

We have a Win 2K App server. It runs a J2SE application. There is a third
party scheduling utility that runs jobs as needed. A CMD process launches
the java.exe jobs.
If a job fails and needs to be killed the scheduler will terminate the job
and in doing so kill the CMD, but the Java.exe continues to run. At any
time there might be dozens of java.exe jobs running, each with a different
PID. So killing them in task manager is not an option, since identifying the
failed job is impossible.
Is there a way to have the java.exe job terminate when the CMD process ends.

A simple example would be to go to a command prompt and type notepad.exe.
After Notepad launches I want to be able to close the command prompt window
and have notepad terminate.

Thanks

ccoates
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top