As i'm working in a faily large hospital with a good amount of pc systems, I'm not always at my pc.
Most of the time I carry a small notepad in my labcoat, but I'm a bit lazy, that's why I don't like to writedown mac adresses.
Moreover it has been some time since I had a nice "problem" to solve, and this was a nice change to do something again.
So what I've done is write a little bash script, a little bigger bash script and a simple php interface.
The small script is the one you can call from the console to add a todo/task item.
The php script is mostly the same, but it has category's and a password.
The bigger bash script does the work. It gets the todo items out of the list and sends them to ssmtp. ssmtp mails them to whatever you want.
I'm using it with a gmail account, but it should work with more smtp servers as long as your provider does not block their port (mostly port 25 is blocked).
Here is the code, most of it is just copy and paste, and then chmod it to +x.
(and make sure you have a webserver+php)
It has a lot of comment in it, but it's in dutch...
smalltask.sh
As you can see you call the script like this:
~$ ./smalltask.sh This would be a task I want to add.
(note that characters like !@#; or other bash-ones don't work).
index.php
Again, the only thing this script does is put the taskline + category through to the verwerp.php script.
verwerk.php
This is more like copy/paste. Don't forget to replace the $pwval variable with the md5 hash of your password.
You can change the category's in the index.php file. The script strips everything except letters and numbers. It could be better filtered, but my regexp are not so good.
mailscript
This is the big bash script which you should call via a crontab.
The only things you have to change here are the mail adresses, and the location of the php/todo files.
It will mail up to 10 tasks every run, and I've set it up to run every 45 minutes via cron:
*/45 * * * * /home/www/remy/mailscript >> /tmp/meeltest 2>&1
(It will log to /tmp/meeltest).
For the ssl part of gmail, you might need to install some programs:
I know that there are other solutions to this problem, one of them is called a pencil :P.
Do with it what you like, and if you make something better of it, please let me know!
One nice tip is to setup your mail account/program to filter messages with TODO in the subject to a seperate folder (smartsieve and gmail do it both).