Skip to content

Instantly share code, notes, and snippets.

@mewlist
Created May 27, 2011 05:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mewlist/994704 to your computer and use it in GitHub Desktop.
Save mewlist/994704 to your computer and use it in GitHub Desktop.
Notification of command finished with real-growl.
#!/bin/bash
# usage:
# alert.sh [command]
$@
ruby <<EOD
require 'real_growl'
RealGrowl::Application.new("Alert").notify(:title=>"Alert", :description=>"finished: $@", :priority=>0, :sticky => false)
EOD
#!/bin/bash
$@
echo $@ | growl -H 192.168.*.* -t "Alert@$HOSTNAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment