Hi folks,
Using shell script I'm running two java applications at background.
The output of 'ps -ef' is
UID PID PPID TTY STIME COMMAND
Amar 2388 1 con 15:35:58 /usr/bin/bash
Amar 1272 1 con 15:44:29 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java
Amar 3972 1 con 15:44:55 /cygdrive/c/Program Files/Java/jdk1.6.0_01/bin/java
Amar 1600 2388 con 15:46:12 /usr/bin/ps
Now I want to kill one Java application from above. How to do that one? How I know at run time which PID is for which application?