Growl When Done

I was waiting for a MySQL migration to finish when I said to a friend: “mysql should have growl support to tell me when a lengthy operation is done”. 10 seconds later that became: “Even better, there should be a command like ‘time’ that would growl when whatever command you give it is done”. 3 minutes later and I finished the bash version of Growl When Done:

gwd()
{
  $*
  growlnotify "${1} is done" -m '...'
}

Drop that in your .bashrc or .bash_profile and you can now do things like:

gwd sleep 1
gwd some time consuming command

Assumptions: * You have growl and the command line growlnotify installed * You use bash

Update: The friend I was talking with didn’t have growlnotify installed. His google search for ‘growlnotify install’ turned up this, much more complete solution: http://www.simplicidade.org/notes/archives/2007/08/tip_use_growlno.html.

Leave a Reply


© 2006-2009 roobasoft, LLC