A Script to Kill Evolution

Tagged:  

I use Evolution as my mail reader, and I like it. It has a lot of good features including a calendar, address book, memos and mail, as well as a number of others. One problem though is that it gets caught up when processing mail, and sometimes just won't come back.

The other problem is that it has several helper apps that are behind the scenes making things work properly, so if you try to just kill the application itself, those will still be running and your problem may not be solved.

My solution was to write a short script to kill all of Evolution and its helper apps. Hope this helps somebody else someday:

% more bin/evokill 
#!/bin/bash
 
ps aux | grep evolution
kill `ps aux | grep evolution | awk -F' ' '{print $2}'`
This script just looks for any application that has the word evolution in its name, and then sends it the kill signal. Not too sophisticated, but it gets the job done. You could easily substitute the word evolution for something else as well.

There's a better way to do this. As mentioned in a rather interesting thread on reddit, pgrep and pkill. Sigh.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.