LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cron won't run notify-send messages (https://www.linuxquestions.org/questions/linux-newbie-8/cron-wont-run-notify-send-messages-4175529984/)

charlemagne-is-my-son 01-04-2015 05:42 AM

cron won't run notify-send messages
 
In my crontab, neither this,
Code:

* * * * * /usr/bin/notify-send "message"
nor this,

Code:

* * * * * export DISPLAY=:0.0 && /usr/bin/notify-send "message"
gets "message" displayed.

This works through command line, but not through cron.

I can't find much on this export DISPLAY addition, though it works when scheduling txt files to be opened through gedit, for example.

Thank you!

JeremyBoden 01-04-2015 11:45 AM

cron doesn't have a screen attached to it.

You could get cron to send mail.

charlemagne-is-my-son 01-04-2015 11:59 AM

I've tried
 
Actually, I've tried to get smtp working (sSMTP, postfix) but that won't seem to work either. I started a separate thread on that issue but got no real takers.


All times are GMT -5. The time now is 05:05 PM.