Search code examples
rubygrowlgrowlnotifygeektool

Ruby system command not working outside console


I am trying to run growlnotify from inside a ruby script. The command I am using is this system("growlnotify Test -m message").

If I use the terminal to execute the script it works fine. If I use Textmate to run the script or Geektool (the eventual target of the script) it does not ever run the growlnotify part. Each other part of the script runs using Textmate or Geektool, but only using the terminal causes Growl to launch a notification window.

Anyone used this tool before?


Solution

  • Is growlnotify in the PATH that TextMate uses?

    Try passing the complete path to growlnotify: ie /usr/local/bin/growlnotify