<html>
<body>
<br>
Dear Gurus,<br><br>
Thanks for all who responded to my previous question. It worked great!
<br><br>
I am now trying to perform a &quot;ps aux | grep &quot;some regular
expression&quot; | cut -f 2 -d ......&quot;<br><br>
I seem to be having 2 problems. <br><br>
1) What delimiter should I define for cut? I've tried &quot; &quot;
(space) but that does not work.<br>
2) I usually get 2 processes listed. The actualy one I'm looking for and
the line I just executed. How can I exclude the 2nd process which also
contains the same &quot;grep <i>regular expression</i>&quot; ?<br><br>
The above is part of a longer one-liner command I'm trying to construct.
I basically want to kill a specific process and I just want to obtain the
PID for it. So, it may end up looking like this??<br><br>
$ ps aux | grep &quot;some regular expression&quot; | cut -f 2 -d ......
| xargs kill -9<br><br>
Or something along those lines... <br><br>
Hope someone out there can help me. <br><br>
Thanks again. :)<br><br>
Best Regards,<br>
Andrew<br><br>
</body>
</html>