LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 11:45 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

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

You could get cron to send mail.
 
Old 01-04-2015, 11:59 AM   #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



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 03:44 PM
Debian daily cron job won't run, but does run in cron.hourly. sandersch Linux - General 7 05-24-2012 01:50 AM
Kmail receives but won't send messages on new Kubuntu 12.04 install smannell Ubuntu 2 05-09-2012 04:30 PM
cron won't run commands? mma8x Linux - Software 4 04-05-2006 12:25 PM
cron to run a an sql query and send Email ehsan Linux - General 2 03-14-2001 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 AM.

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
Open Source Consulting | Domain Registration