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

Correlation Between Taxes and Social/Economic Programs

I have always wondered if the taxes people pay correlate with the availability of social and economic programs and safety nets, not to mention the military programs that protect them. This idea comes in light of the notion that Europeans are highly taxed compared to their American counterparts, but they seem to have access to free (or almost free) education and health care while the US provides neither. The Europeans live and work at a more leisurely pace than Americans and they have the comfort of knowing that their government has put safety nets in case a disaster. The Europeans do a lot to ensure that all their citizens have comparable opportunities, and thus you are less likely to see a huge gap between the poor and the rich. Perhaps the lack of incentive to excel has stifled entrepreneurship and innovation in Europe to some extent. In fact, Europe has historically high unemployment rates than the US and the size of government there is significantly larger than that of the US....

Obama, McCain and Campaign Financing

Obama and McCain had at one point both agreed to take public financing in September 2007 if they were their respective party's nominee. At the time, they were both long shots to get their party's nomination, but oddly enough they have both made it to the general election. As for their promise to take public financing, McCain decided to keep his promise while Obama opted to finance his campaign through his own fundraising. In doing so, he became the first ever presidential candidate to forego public financing during the general election. In February 2008, McCain started criticizing Obama for not keeping his promise to take public financing. How legitimate are McCain's accusations? That's what I wanted to discuss. According to The New York Times campaign finance page , Obama and McCain raised $401m and ~$150m, respectively, prior to earning their party's nomination. The public financing package is $84m over two months (Sept-Nov). For McCain, whose averaged $7....

Plea to Barack on Foreign Aid

Barack Obama has been my candidate of choice from the beginning. I have outlined a few of the reasons I support him . One I didn't mention is the issue of foreign aid. As I discussed earlier, US government's foreign aid as a % of its GDP is one of the lowest for any developed nation. Economic Aid to Developing Countries - The Stats To make it worse, much of the aid is given to two sources: Military and economic aid to Israel and Egypt to keep some peace in the Middle East Colombia, Peru and Bolivia to fight drug The tiny bit that is left goes to countries where the US has foreign policy interests. The aid is used for political leverage. Here is where Barack Obama comes into the picture. He has said that diplomacy and restoration of American image in the world would be the pillars of his foreign policy. One way to improve America's image in the world is to provide more foreign aid, particularly one that is not directly used for political leveraging. Obama promised ...