I have a Ruby script with the command
`notify-send "Error in EYW Spaces script" "#{Shellwords.escape(message)}"`
If I just run the script from the command line, I get the popup message, but if I put the script into the crontab
*/5 * * * * ruby ~/software_dev/scripts/new_script.rb
then nothing happens. I know for a fact that the script is running correctly, as I'm getting script output emailed to me, but its just that the popup is not appearing.
Any ideas?