LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-24-2004, 09:52 AM   #1
lionking_x
Member
 
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 ).

Thanks
spk
 
Old 09-24-2004, 10:06 AM   #2
Donboy
Member
 
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, 03:21 PM   #3
lionking_x
Member
 
Registered: Aug 2003
Posts: 36

Original Poster
Rep: Reputation: 15
Hi
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 ?

thanks
spk
 
Old 09-26-2004, 07:58 PM   #4
lionking_x
Member
 
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 !!!"

CIAO
spk
 
  


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


All times are GMT -5. The time now is 01:56 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