On 9/17/07, <b class="gmail_sendername">A JM</b> &lt;<a href="mailto:vbtalent@gmail.com">vbtalent@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Since I&#39;m not checking for the mythbackend PID (<span style="font-weight: bold;">
BackendRunStatus=`ps -A | grep -c &quot;mythbackend&quot;`) </span>is there a way to use the same KILL command with a generic &quot;mythbackend&quot; in it? In other words if you find &quot;mythbackend&quot;, KILL it?<br>

</blockquote></div><br>killall -9 mythbackend<br><br>or<br><br>ps -A | grep -c &quot;mythbackend&quot; | awk &#39;{print $1}&#39; | xargs kill -9<br><br>the quoting on the last is very important, the first is much easier.
<br><br>-- <br>Doug<br><br><br>