Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-24-2004, 10:52 AM   #1
Registered: Aug 2003
Posts: 36

Rep: Reputation: 15
Using Cron For Reminders

Hi ,

This is probably a very lame question . I know how to setup cron to run a small script which copies files, etc whenever i want it too.

What i cannot do is to DISPLAY a message on my SCREEN at such and such a time reminding me to do something, say "Coffee Break" , etc. When i try to write a script it usually sends mails to root. When i use crontab -e and give the following values ,
0 15 * * * echo 'COFFEE BREAK'

it does not work ,

I cannot understand why this does not work ? How do i set up cron so i get reminders on my screen when i am using my Fedora Linux Box ( Gnome ).

Old 09-24-2004, 11:06 AM   #2
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
You need to tell the output where to go. To do that, you need to know what your TTY happens to be. You can probably run "who" at the prompt to see who is logged on to what terminals. So if you find you're logging on to tty1, then make your line...

echo "hello" > /dev/tty1
Old 09-26-2004, 04:21 PM   #3
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
This( echo "hello" > /dev/tty1) works only when you are in the terminal prompt , once you login to X there is no more message display. I am using Gnome,do i have to pipethis to some display app there ?

Old 09-26-2004, 08:58 PM   #4
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Hi Guys ,

i finally figured out , its no biggie for most of you , this post is for the newest of newbie's :-)
I had to use xmessage in my crontab ,

0-59/30 * * * * /usr/X11R6/bin/xmessage -display :0.0 "COFFEE BREAK DUDE !!!"



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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 09:09 AM
"To do list" reminders jrdioko Linux - Software 1 09-09-2005 12:01 PM
Password reminders SAMBA domain geokker Linux - Software 0 11-16-2004 09:45 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 10:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 AM.

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