Skip to main content

Crontabbed Reminder Script

I have always wanted to keep an active and up-to-date to-do list and be always reminded of the things I have to do. There are lots of choices out there, but I wanted to stick to simple commandline driven tools to keep from wasting valuable RAM on non-critical utilities. After a few hours of playing around, here is the solution I have adapted.

Todo/devtodo
I use 'todo' to make a list of my tasks. 'todo' is a reminder/task program aimed at developersis, but it is very easy to use and has a good set of features. For our purposes, we can generate the list shown below by simply entering the following commands:
todo -G -a "Jobs applied to:" -p 1
todo -G -a "To Learn and Review:" -p 3
todo -G -a "Daily to-do list" -p 5
If you enter, 'todo', it will list your to-do list. Feel free to explore more of 'todo', but the example above suffices for out little demo.

I want my extended to-do list to hit me in the face every hour -- that's the only way I would feel guilty enough to work hard. So, we are going to need some graphical tool to announce my to-do list as frequently as possible. After looking through a few options, I chose 'gmessage' as that graphical tool. Of course, I will setup a 'crontab' to call 'gmessage'.

Script + gmessage
I wrote this script into a file called '~/bin/message'
#!/usr/bin/tcsh
date > ~/.message
todo --all >> ~/.message
gmessage -center -font "Sans Serif Bold 10" -display :0 -file ~/.message
The most important part part here is to specify -display :0, or whatever the output of your 'echo $DISPLAY' is, because it is essential if we are to use cron to run this script.

Crontab
To run the script '~/bin/message' every hour at the half hour mark, we can create add cron job to our crontab by running 'crontab -e' and adding this line:
# m h dom mon dow command
30 * * * * ~/bin/message
The result of this endeavor is:
A constant reminder like this should keep your responsibilities in the foreground and minimize the slacking off you would engage in otherwise.

Comments

BT08 said…
As an alternative to dev-todo, you could use KArm for task listing and time tracking. Gnome has a similar tool as well.

Popular posts from this blog

Slow Acroread Startup in OpenSuSe 11.0

It takes more than 30 seconds for acroread to load on my Opensuse machine the first time and the startup time gets shorter in subsequent attempts. Why? This is not the first time I have come across this problem of slow application startups in OpenSuse. Apparently a lot of people had encountered this problem and they found a simple solution - uninstalling the version of acroread that comes with OpenSuse and installing one from Adobe site yourself. Fortunately, that prescription seems to have solved the problem. My acroread startup time is a few seconds now. Why does a very good Linux distribution like OpenSuse with its wide support and following make so many of these mistakes?!?! Over the years, I have seen Suse/OpenSuse sending buggy distributions that make you wonder if they do much testing before releasing their distro. Here are a few bugs I have come across: The extremely slow startup of Openoffice in OpenSuse 10.0 was one of the reasons I switched to Fedora Core for a while...

The Pervasive Mac vs. Windows vs. Linux Analogy

I'm sure everyone has seen the Mac vs. PC ads on TV where the Mac appears to be confident while th PC is in denial about its deficiencies. Missing from that picture is Linux which is robust, but seeks no attention because it has no commercial ambitions. This Mac vs. PC vs. Linux model can serve as a analogy for many things/phenomena. I would like to make a list of those analogies here. For example, The New York Times recently characterized Hillary as a PC and Obama as a mac on the basis of the design of their websites. The analogy would also work if you think of Hillary as the status quo much like Windows, and Obama as the new thing with great promise, cachet and appeal like the newly reborn mac. It is not obvious who would play the role of Linux, but my choice would be Ron Paul. He has some bold and independent ideas along with a very loyal following even though he has no chance of winning. PC Mac Linux Candidate Hillary Clinton Barack Obama Ron Paul States Northeast West Co...

Movies for the Idle Mind

Wondering how I fill my idle hours and days? Among other things, I watch a few movies here and there. Here is a list I downloaded using Bittorrent and am watching at the pace of a movie non-enthusiast. The rating for the movies I have already watched are shown while it is left empty for the others. Woody Allen:: # MOVIE MY RATING ( /10) 1 Annie Hall 10 2 Manhattan 8 3 Hannah and Her Sisters 9 4 Love and Death 8 5 Deconstructing Harry 6 6 Match Point 5 7 Antz 8 8 Play it Again, Sam 8 9 Husbands and Wives 10 The Purple Rose of Cairo 11 Everything You Wanted to Know about Sex, But Were Afraid To Ask OTHER:: # MOVIE MY RATING ( /10) 1 Citizen Kane 7 2 Eternal Sunshine of a Spotless Mind 9 3 The Pursuit of Happyness 6 4 About Schmidt 5 5 The Royal Tenenbaums 10 6 Rushmore 7 7 The Big Lebowski 9 8 Monty Python and the Holy Grail 7 9 Ed Wood 8 10 Broken Flowers 8 11 Basketball Diaries 8 12 Crash 13 The Clockwork Orange 14 City of God 15 The Science of Sleep 16 La Dolce Vita 17...