![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Diff b/n kill and kill -9 | ammu | UNIX for Advanced & Expert Users | 2 | 07-18-2007 05:29 PM |
| kill(0,-9) don't kill the process | umen | High Level Programming | 9 | 06-19-2007 06:09 AM |
| not able to kill find with kill -9 | Amardeep | UNIX for Dummies Questions & Answers | 5 | 01-04-2007 05:49 PM |
| When kill doesnt work, how to kill a process ? | VijayHegde | UNIX for Advanced & Expert Users | 3 | 05-12-2006 04:24 PM |
| Is there a way to kill 100's of PID's? | darthur | UNIX for Dummies Questions & Answers | 2 | 04-04-2002 12:29 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
KILL PID, intern should kill another PID.
Hi All,
In my project i have two process runs in the back end. Once i start my project, and execute the command ps, i get below output: PID TTY TIME CMD 9086 pts/1 0:00 ksh 9241 pts/1 0:02 java 9240 pts/1 0:00 shell_script_bg java with 9241 PID is the main process which runs my whole application. if i have to say in one word, java process has the whole control of my app. shell_script_bg with 9241 PID is the shell script, which starts the java command. If i kill the java PID with kill -9 9241 , which shuts my complete application. But if i kill shell_script_bg pid, it not making my application go down. My requirement is if i kill one PID it should intern kill java PID as well. what r the changes i need to make in my shell script or any where else. This is an urgent requirement. plz help me. Regards, Ravi. |
|
||||
|
thanks grial,
i think i had not explained in a proper way. PID TTY TIME CMD 9086 pts/1 0:00 ksh 9241 pts/1 0:02 java 9240 pts/1 0:00 shell_script_bg i mean to say if i kill the PID 9240 which belong to shell_script_bg, this intern should kill java PID 9241. i killed the process shell_script_bg using kill -9 9240, shell_script_bg is the shell script code, now my question is what is the code change i have to make in shell script, so that if i kill it's process ID then that should kill some other process ID (java's)internally. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|