LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2015, 06:42 AM   #1
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Rep: Reputation: Disabled
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!
 
Old 01-04-2015, 12:45 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
cron doesn't have a screen attached to it.

You could get cron to send mail.
 
Old 01-04-2015, 12:59 PM   #3
charlemagne-is-my-son
Member
 
Registered: Dec 2012
Location: Shanghai
Distribution: Xubuntu, 14.04
Posts: 54

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Notifications don't show up (notify-send notify-osd) michal017 Linux - Desktop 0 05-06-2014 04:44 PM
Debian daily cron job won't run, but does run in cron.hourly. sandersch Linux - General 7 05-24-2012 02:50 AM
Kmail receives but won't send messages on new Kubuntu 12.04 install smannell Ubuntu 2 05-09-2012 05:30 PM
cron won't run commands? mma8x Linux - Software 4 04-05-2006 01:25 PM
cron to run a an sql query and send Email ehsan Linux - General 2 03-14-2001 11:50 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration