Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (16 sloc) 896 Bytes
Some quick & dirty notifications:
For more info:
$ cmd; say "Don't care how it finished, but it did"
$ cmd && say "Success!"
$ (cmd && say "Success") || say "Failed"
$ mysql app_dev < dump.sql && say "Finished importing"
$ cmd; osascript -e 'tell application "Quicksilver" to show large type "Finished!"'
$ cmd; growlnotify -s -m "Done"
Note: If you are using Leopard, there's a bug with growlnotify as of version 1.1.2 that prevents growlnotify from working consistently. However, there's an easy workaround.
* Open up the Growl preference pane and select the Network tab.
* Click to enable "Listen for incoming notifications".
* Now when you run growlnotify, add the "-H localhost" option.
$ cmd && growlnotify -s -H localhost -m "Success"