03-18-2009
i think you will find there is only one pid no child pids, when you put in $$ the second loop kills itself
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
what is the kill command? (1 Reply)
Discussion started by: Rush
1 Replies
2. Programming
is it possible to implement the kill command using C? (2 Replies)
Discussion started by: kelogs1347
2 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
What is difference between kill & kill -9 command?
Thanks & regards,
Sonali (4 Replies)
Discussion started by: sonali
4 Replies
4. Shell Programming and Scripting
Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies
5. Linux
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies
6. Shell Programming and Scripting
Hi Guys,
I like to know if i have a process which triggers 10 different child processes.
How to identify out of the 11 processes running which is the parent process and what are the child process?
And if i kill the parent process will the child process be killed.. if not is there a way to... (2 Replies)
Discussion started by: mac4rfree
2 Replies
7. Solaris
I am running Solaris 9. I have a problem with kill command. I'm sort of teaching myself so this might be a really stupid thing. I logged in as a normal user, lets say ABC, and then did "su" to root. After becoming root, I tried to kill the process started by ABC by saying
kill -9 "pid of ABC"
... (3 Replies)
Discussion started by: the_red_dove
3 Replies
8. Shell Programming and Scripting
Good way to kill the process, if the process having it's child (3 Replies)
Discussion started by: pritish.sas
3 Replies
9. Shell Programming and Scripting
hello, can anyone help me with a script that checks the status of processes and "kills" the process that's hanging? I mean I'm aware of the commands but I'm confused on how to put them all together... thanks! :) (4 Replies)
Discussion started by: dude911
4 Replies
10. UNIX for Dummies Questions & Answers
what is the difference between kill 5 and kill %5? the first one is to kill a process with PID 5 but what does the % mean in the second one? (3 Replies)
Discussion started by: chinababy
3 Replies