Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A Unix shell script to work with Growl' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A Unix shell script to work with Growl
Authored by: sceaga on Jun 08, '07 08:37:07AM

Why not use the provided "growlnotify" extra?

growlnotify documentation

Here is a list of it's command-line options:

$ growlnotify -help
Usage: growlnotify [-hsvwc] [-i ext] [-I filepath] [--image filepath]
                   [-a appname] [-p priority] [-H host] [-u] [-P password]
                   [--port port] [-n name] [-m message] [-t] [title]
                   [-A method]
Options:
    -h,--help       Display this help
    -v,--version    Display version number
    -n,--name       Set the name of the application that sends the notification
                    [Default: growlnotify]
    -s,--sticky     Make the notification sticky
    -a,--appIcon    Specify an application name  to take the icon from
    -i,--icon       Specify a file type or extension to look up for the
                    notification icon
    -I,--iconpath   Specify a file whose icon will be the notification icon
       --image      Specify an image file to be used for the notification icon
    -m,--message    Sets the message to be used instead of using stdin
                    Passing - as the argument means read from stdin
    -p,--priority   Specify an int or named key (default is 0)
    -d,--identifier Specify a notification identifier (used for coalescing)
    -H,--host       Specify a hostname to which to send a remote notification.
    -P,--password   Password used for remote notifications.
    -u,--udp        Use UDP instead of DO to send a remote notification.
       --port       Port number for UDP notifications.
    -A,--auth       Specify digest algorithm for UDP authentication.
                    Either MD5 [Default], SHA256 or NONE.
    -c,--crypt      Encrypt UDP notifications.
    -w,--wait       Wait until the notification has been dismissed.

Display a notification using the title given on the command-line and the
message given in the standard input.

Priority can be one of the following named keys: Very Low, Moderate, Normal,
High, Emergency. It can also be an int between -2 and 2.

To be compatible with gNotify the following switch is accepted:
    -t,--title      Does nothing. Any text following will be treated as the
                    title because that's the default argument behaviour



[ Reply to This | # ]
A Unix shell script to work with Growl
Authored by: fracai on Jun 08, '07 08:38:58AM

:shakes fist:

---
i am jack's amusing sig file



[ Reply to This | # ]