<div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">Wolfgang Leideck</b> &lt;<a href="mailto:wleideck@googlemail.com">wleideck@googlemail.com</a>&gt; 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>&nbsp;&nbsp;kill -9 $pid<br>done<br><br>Wolfgang<br><br>2006/8/9, Kaushal Shriyan &lt;<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>&gt;:<br>&gt;<br>&gt; Hi ALL<br>&gt;<br>&gt; I have to kill all processes which has owner as tester, If&nbsp;&nbsp;there any
<br>&gt; specific command to that or i have to write script, if i read a PID into<br>&gt; variable i cant kill the processes its not&nbsp;&nbsp;getting killed below is the<br>&gt; script.<br>&gt;<br>&gt;&nbsp;&nbsp;#!/bin/bash<br>&gt; ps -ef |grep bdctest | grep -v root | awk '{print $2}'&gt;out
<br>&gt;<br>&gt; while read line<br>&gt; do<br>&gt; kill -9&nbsp;&nbsp;$line ; echo $?<br>&gt; done<br>&gt;<br>&gt; the process id is not moved to&nbsp;&nbsp;the variable<br>&gt;<br>&gt;<br>&gt; Kaushal<br>&gt; --<br>&gt; fedora-list mailing list
<br>&gt; <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>&gt; To unsubscribe:<br>&gt; <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br>&gt;<br>&gt;<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>&nbsp;</div>
<div>Kaushal</div>