#!/bin/bash # bug-todo, # a simple script to nag you over zephyr with a todo list # Author: Liz A. Denys (lizdenys@mit.edu) # Last updated on February 6, 2012 echo "Your todo list, as found in ~/Private/todo, will be zephyred to you " echo "every thirty minutes starting immediately until this script receives " echo "SIGTERM. If your todo list is empty, ~/Private/todo should be an " echo "empty file." echo # repeat forever while true; do # get todo list todolist="$(cat $HOME/Private/todo)" # check that todo list isn't empty if [ -n "$todolist" ]; then # zephyr list echo "$todolist" | zwrite $USER -O auto -s TODO -d -n fi # wait 30 minutes before bugging again sleep 1800 done