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

Distribution of Wealth in the US

The rich get richer and the poor get poorer. I heard this statement quite a bit lately particularly in light of the sub-prime mortgage and general housing crisis in the US. The country has enjoyed significant economic prosperity and both Clinton and Bush boasted economic growth under their reign. Unfortunately, the beneficiaries of the economic boom are not people from all economic backgrounds, but rather the top 10%. To make things worse, Bush gave tax cuts mainly targeting the top 10%. Being more of a numbers guy, I always wanted showing the validity of the-rich-get-richer-n-the-poor-get-poorer statement. Thanks to Wikipedia , I have finally found it!! Both the mean and median net worth of families for the bottom 50% of the population has remained absolutely flat while the 75th-90th percentile see a decent growth and the top 10% enjoy the most appreciation on their net worth. So, if you factor in inflation, the-rich-get-richer-n-the-poor-get-poorer probably holds true. The g...

IPtables, SVN, and NMAP

I reviewed some material on IPtables, SVN, and NMAP just for the sake of keeping my mind busy. Here are some useful notes: IPtables - best resource found at HERE SVN - best, as in the quickest and simplest intro could be found HERE NMAP - I honestly don't see in using it for more than port-scanning in a few instances. Anyway, here are a few other options that might come in handy at some point. nmap -sT/sS/ sX/sF/...[-P0] IPADDRESS(range) == to check which ports are open nmap -sP IPADDRESS(range) == a simple ping scan for availability nmap -sO IPADDRESS(range) == check what IP protocols are available nmap -sV IPADDRESS(range) == a scan with version detection Other useful flags: -O == detects OS, part of -v (verbosity) flag as well -A == detects OS and versions -v == request high verbosity/detail -F == performs a fast scan of only a few common ports Installing Perl modules Perl modules may be installed using the CPAN module or from source. SOURCE...

Reasons to Vote for Barack Obama

Not that I am eligible to vote or anything ... but if I could, I would vote for Barack Obama for the following reasons. He listens to experts . He has assembled a group of smart and practical intellectuals to advise him on all sorts of topics. Hillary has her own agenda and ambition which appears to keep her from entertaining any "elitist" agenda. He is a good manager. The way he hired very intelligent people to run a nearly flawless campaign to beat an established and seemingly unbeatable opponent in Hillary Clinton is commendable. He really knows how to surround himself with a smart group of people who can get things done and that is exactly what this country needs. Hillary hired people on the basis of their loyalty and counted on friends of the Clintons to win her the nomination. Unfortunately, all that influence and political capital could not overcome the grassroots movement Obama initiated. He is not an ideologue . That allows him to make good decisions for this...