how to kill highlander tip processes?

how to kill highlander tip processes?

Post by J. Kelly Cunningh » Mon, 10 Oct 1994 02:33:02

I have three tip processes that just won't die.  I've tried every option
mentioned on the kill man page (as root).  Is there any way to kill them
w/o a reboot?

Thanks, kc


1. How can kill all child processes without killing parent process ?

: Hi all UNIX expert,

: I am now writing a shell script to kill all child processes of a
: particular process.  I have written the following
: script:

: ps -ef | grep o\\ra  | awk '{print $2}' | xargs kill

: where ora is the name of the parent process

: However, this shell script only kills out the parent process,
: Does anyone know how to kill all child process without
: killing that parent process ? Please advise !!! Many thanks !!!
: Have a nice UNIX day !!!

you will have to read all matching processes and only kill the last in the
chain by using PID and PPID; unfortunately we can not assume that the
child is the process with the highest PPID:
assume $2=PID , $3=PPID ( coming from   ps -ef | grep o\\ra  | grep -v grep )

        PID[ $2 ]=""
        PPID[ $3 ]=""

# process ids which are also parents should be deleted
        for( pid in PPID ) if ( pid in PID ) delete PID[ pid ]
        for( pid in PID ) { do_whatever_you_like_on_your_own_risk( pid ) }

function do_whatever_you_like_on_your_own_risk( param ){

2. New to Compile and Run Unix Program.

3. A method to kill process that cannot be killed even with `kill -9'.

4. Trident 9440 SVGA-Server needed

5. How to kill process which not killed by 'kill' ?

6. Low-level formatting of a SCSI disk on a SS10 -- How?

7. How to Kill Process and Its sub-process and its sub-process??

8. Onstream SC30 Tape Backup

9. How to Kill a process and its sub-process and its sub-process at a time..

10. killing dead process, kill -9 doesn′t work

11. how to kill a process when kill -9 won't

12. Kill -9 won't kill a process

13. Help: kill sub-process after parent killed