<div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">Wolfgang Leideck</b> <<a href="mailto:wleideck@googlemail.com">wleideck@googlemail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Try following<br><br>for pid in $(ps -ef | grep bdctest | grep -v root | grep -v grep | awk<br>'{print $2}')
<br>do<br>  kill -9 $pid<br>done<br><br>Wolfgang<br><br>2006/8/9, Kaushal Shriyan <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>>:<br>><br>> Hi ALL<br>><br>> I have to kill all processes which has owner as tester, If  there any
<br>> specific command to that or i have to write script, if i read a PID into<br>> variable i cant kill the processes its not  getting killed below is the<br>> script.<br>><br>>  #!/bin/bash<br>> ps -ef |grep bdctest | grep -v root | awk '{print $2}'>out
<br>><br>> while read line<br>> do<br>> kill -9  $line ; echo $?<br>> done<br>><br>> the process id is not moved to  the variable<br>><br>><br>> Kaushal<br>> --<br>> fedora-list mailing list
<br>> <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>> To unsubscribe:<br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br>><br>><br><br><br>--<br>Wolfgang Leideck<br>Alberichstr. 14<br>D - 68199 Mannheim<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: 
<a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div>
<div><br>Thanks Wolfgang :-)</div>
<div> </div>
<div>Kaushal</div>