how to start growl via the command line

Posted by adam n on Stack Overflow See other posts from Stack Overflow or by adam n
Published on 2010-04-02T02:41:54Z Indexed on 2010/04/02 2:53 UTC
Read the original article Hit count: 538

Filed under:
|
|
|

I have a bash script that uses growlnotify to send notifications. However, growlnotify doesn't work if Growl isn't already running, and it won't auto start Growl if it needs it, either. So I want to be able to check if Growl is running, and then start it if it isn't.
I'm thinking of doing something like:

g=$(ps -e | grep Growl | grep -v grep)
if [ -z "$g" ]  # Growl isn't running
then
# (start Growl)
fi

How would I start Growl via the command line?

© Stack Overflow or respective owner

Related posts about growl

Related posts about growlnotify