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...

Online Storage Solutions

Problem: I often need to have some files readily available online so that I can access them from any computer. There are many ways to go about solving this problem and each comes with its set of shortcomings: Yahoo! Briefcase - 30MB limit Online storage services like Box.net, Xdrive, MediaMax - usually cost money; signing up is cumbersome Email to myself as an attachment - enough said there It's time to find a home-made solution. The solution I am about to suggest is intended for -- A *NIX user someone with access to a *NIX web server Solution: I am a linux user and I have user level access to a web server. The web server is configured such that the public does not have access to directory structure. So, I would need to write a script that copies my files to the web server and creates an index listing my files. Password protection of the storage would follow after that. Client Side: Use the following script to transfer file to server, make the file readable by public and execu...

Tax-and-spend Liberal My Ass

This is a continuation of my earlier posts on economic performance of democratic and republican administrations. My earlier posts include: Politics of the Federal Minimum Wage Democrats Have Kept Unemployment Low Democrats care about poor people Truth About Economic Performance of Political Parties I like to think I have shed light on some facts and debunked some conventional wisdom. In this post, I will attempt to examine the tax-and-spend liberal label put on democrats. Republicans often try to label democrats as tax-and-spend liberals who are soft on national security. While the latter point is based on anecdotal evidence, the earlier is amenable to empirical examination. So, I set out to prove or disprove the notion that democrats often tax and spend in a way that does not yield economic growth. The implication of tax-and-spend liberal is one that puts excessive tax burden on its population and finds inefficient (think socialistic) ways of spending that tax reven...