parent process

I need to kill all the processes of user "release" on system "PROterm" or the parent process for the user

I did this
ps -ef | grep PROterm | grep release

i got
release 2900014 2961494 0 12:19:44 pts/3 0:00 PROterm
release 3264694 2900014 0 12:19:44 - 0:00 PROterm

if i do ps -fu release

i got
release 2424852 2461828 0 10:28:04 pts/1 0:00 -ksh
release 2900014 2961494 0 12:19:44 pts/3 0:00 PROterm
release 2961494 2445492 0 12:19:26 pts/3 0:00 -ksh
release 3076184 3264694 0 12:19:44 - 0:00 PROsess 813695172 813695172
release 3153928 3158138 0 11:31:56 pts/2 0:00 -ksh
release 3264694 2900014 0 12:19:44 - 0:00 PROterm

i have no clue wat to kill and how
can somebody help

You can use both.

 
ps -ef | grep PROterm | grep release
ps -fu release | grep PROterm

it will return me more than one processes
now how to kill all of them

or can i find the parent process and kill it

Why do you start this thread when you have a very similar already open? Please don't do that.

Try this..

Tokill=`ps -fu release | grep PROterm | awk '{print $2}'`
kill -9 $Tokill

P.S : Before issuing the kill cmd, print that pid chk it.

one last question can i only get the parent process id

Thanks a lot for ur help

i ran the following

@pacrs860:/frs36/rs36/release:> ps -ef | grep release

and the result was

release 2617576 1 0 14:40:11 - 0:00 PROsess
release 2949170 3244210 0 15:34:23 pts/0 0:00 -ksh
release 3055630 3195008 0 17:00:15 - 0:00 PROterm
release 3158184 3055630 0 17:00:15 - 0:00 PROsess
release 3195008 3272704 0 17:00:15 pts/5 0:00 PROterm
release 3199148 3080196 0 16:57:18 pts/1 0:00 -ksh
release 3235968 3199148 0 17:01:54 pts/1 0:00 grep release
release 3260562 3199148 1 17:01:54 pts/1 0:00 ps -ef
release 3272704 3219586 0 16:59:43 pts/5 0:00 -ksh

what should i write so i get the process id in black as a result
so that i can kill it
can anybody help

thanks

pls reply its urgent!!!!!