On Wed, 2003-03-26 at 18:02, Chris wrote:
> Hi Jeff,
> 
> > > Now, is it possible to kill a process, based on it's name (not PID) when
> > > such message is triggered and an email is dispatched to my cell phone?
> The
> >
> > Yes it is possible.  Lets see you come up with some ideas and we'll help
> > you refine them.  You already got a free gimme. :-)
> 
> Thanks for the gimme ;-)  Here's what I have just figured out...  two
> different ways to do just what I was thinking about.
> 
> 1.  The quick and dirty way:
> 
> killall <processname>
> 
> In this case, "killall Author.exe" will work just fine.
> 
> 2.  A more involved and elaborate way:
> 
> ps aux | grep <processname> | grep -v grep | awk '{print $2}' | xargs
> kill -9
> 
> 

or 
kill -9 $(pidof <processname>)

Bret



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to