Skip to content

Instantly share code, notes, and snippets.

@snaka
Created April 14, 2009 06:31
Show Gist options
  • Save snaka/95014 to your computer and use it in GitHub Desktop.
Save snaka/95014 to your computer and use it in GitHub Desktop.
Ruby/GNTP example : Growl notifier command
#!/usr/bin/ruby
# Growl notifier command
# Usage:
# gntp-notify [message]
# License:
# public domain
require "rubygems"
require "ruby_gntp" # >= ver.0.1.0
msg = ARGV[0] || "Alert!!"
GNTP.notify({
:app_name => "gntp-notify",
:notification_name => "gntp-notify",
:title => "from commandline",
:text => msg,
:sticky => true,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment