Created
April 14, 2009 06:31
-
-
Save snaka/95014 to your computer and use it in GitHub Desktop.
Ruby/GNTP example : Growl notifier command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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