RubyTask is my version of todo.sh
(http://github.com/ginatrapani/todo.txt-cli/), a
command-line todo app thing. I'd probably find all the various todo apps infinitely
more useful if they actually told me to do stuff.
Enter rt
, or RubyTask. It tells you to do things by reminding you of dates.
Think of it like a todo list with a hacked-up cron
added to spruce things up.
A time/date comes up? You get a reminder.
So, there are two distinct parts of RubyTask, one of which isn't really needed. The rt
script is the one that actually manages the task file; this you probably
want to drop in your $PATH
somewhere for use. Most of the script is actually documentation, so take advantage of it:
~$ rt help
You'll get a nice long message about how to use it. Explore the help
command to get info on the other stuff it does.
Now, what about the reminders? This is where the rt-daemon
script comes into
play. Run it and it will run some tests (unless you configure it -- see below) to
make sure you've got a compatible system, then prep and daemonize itself, running in
the background & free of any terminals. If it sees a past date or time, it won't be
long before it alerts you about it (using the $config[:alert]
command). Note that
the daemon is multi-user; it will look through all of the users who have a
/home/<user>
directory. Just use rt
as normal, and the daemon will take care of
itself.
Command-line options that can be set (in any order)
-
l=<file>
,log=<file>
=> Sets a log file to write to (default is/dev/null
, so no log) -
noassert
=> Forces the script to run, without running any of pre-operation tests. -
sleep=<seconds>
=> Sets the wait between scans of.rtasks
files (and alerts) -
alert=<command>
=> Determines the command to alert users. Defaults tonotify-send
-
file=<name>
=> Names the file to use for the task list. By default it uses the same one asrt
, which is.rtasks
Footnote: I hate Github's Markdown interpretation sometimes. A lot. It hates my lists.