Re: kill with regex?
On Mon, Jan 20, 2003 at 10:22:13AM +1100, Michael Wardle wrote:
> On Mon, 2003-01-20 at 02:40, Hugh Saunders wrote:
> > ps x gives a list of xine's which i would like to kill
>
> My preferred method is:
> $ kill `ps -C xine -o pid=`
> OR
> $ ps -C xine -o pid= | xargs kill
>
> This is subtly different from the other suggestions (such as "killall
> xine"), as it kills anything beginning with xine. This is very useful
> for killing evolution and its components when a major error occurs.
that makes sense, this is my understanding:
-C means command name, -o defines the desired format
of the ps output and xargs uses whatever is piped to it as the argument for
kill?
hugh
Reply to: