[wplug] Killing processes
Lance Tost
ltost at pobox.com
Wed Nov 26 11:44:31 EST 2003
Why not just use "killall evolution"? Be careful though, it has other
meanings on other OS's.
Linux:
NAME
killall - kill processes by name
Solaris:
NAME
killall - kill all active processes
On Wed, 26 Nov 2003, Andreas Rindler wrote:
> Date: Wed, 26 Nov 2003 09:08:07 -0500
> From: Andreas Rindler <arindler at cmu.edu>
> Reply-To: wplug at wplug.org
> To: wplug at wplug.org
> Subject: [wplug] Killing processes
>
> Hey,
> I am having trouble restarting Evolution after my network connection has
> either changed or was terminated. It leaves two process running and I
> can't restart Evolution. My solution so far was to kill these processes
> which lets me restart it.
>
> I am trying to automate this, but I can't quite get the syntax to work:
>
> ps aux | grep evolutio n| awk '{print$2}'
>
> #gives me all processes that have evolution in the name
>
> ps aux | grep evolution | awk '{print$2}' | kill
>
> #and then the idea was to just pipe it to kill, but it doesn't work
> #also, the third process is the grep command itself, how do i skip that
> one??
>
> I would be grateful for any ideas...
>
> thanks,
> andi
>
>
>
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
--
Lance Tost <ltost at pobox.com>
More information about the wplug
mailing list