# # Ricky's crontab # Backup stored at /home/rb/.crontab, automatically. # # m h dom mon dow command # # Last updated by rb on Thu Feb 26 18:51:20 EST 2004 # MAILTO=rb@localhost # # Generate reports which get mailed to me or put on web # # Vim swap files that have been left around 12 10 * * * ( echo Vim swap files currently left: && /bin/ls -gGl /home/rb/tmp/vim.swaps/ && echo && echo Vim current processes: && ( ps ax | grep -i vim )) | /usr/local/bin/mutt rb@localhost -s "Swap files left in the temp directory" # Backup writing and code directories, backup to minerva on wday=4 19 5 * * * /home/rb/code/perl/backup_to_minerva/backup_to_minerva -n 19 6 * * 4 /home/rb/code/perl/backup_to_minerva/backup_to_minerva # Grab the weather forecast and send it to me 15 9 * * * /home/rb/bin/melbourne_forecast | /usr/local/bin/mutt rb@localhost -s "Weather Forecast" # Mail our balance to us every monday, for shopping, 35 4 * * 0 /home/rb/bin/balance | /usr/local/bin/mutt rb@localhost -s "Bank Balance" # and near the end of the month, for paying off credit card 35 4 29 * * /home/rb/bin/balance | /usr/local/bin/mutt rb@localhost -s "Bank Balance" # Mail us the internode usage stats 4 times a month 39 5 */2 * * /usr/local/bin/internode_usage | /usr/local/bin/mutt rb@localhost -s "Internode Usage Statistics" # Grab my RSS stuff and email it to me 13 8,15 * * * cd ~/code/perl/fetchlj/fetchlj && ./fetchlj -c ~/.fetchlj/config.short 13 9,16 * * * cd ~/code/perl/fetchlj/fetchlj && ./fetchlj # Clear junkmail waiting for email lists 44 9 * * * /home/rb/code/perl/mailman/heldmsg_clear | /usr/local/bin/mutt rb@localhost -s "Mailman held messages deleted" # audible.com catalog changes 33 8 * * 0,4 /home/rb/code/perl/audible_catalog/audible_newbooks | /usr/local/bin/mutt rb@localhost -s "New and Updated Books At Audible.com" # oldest 100 webpages 57 6 * * 5 /home/rb/code/bash/findolder | /usr/local/bin/mutt rb@localhost -s "old webpage files" # TV Guides 10 9 * * * /home/rb/code/perl/xmltv/do_xmltv # # Audio stuff # # turn the sound up to "daytime" level 15 10 * * * /usr/local/bin/mixer -q -s 75 # turn the sound down to "afternoon-rest" level 59 13 * * * /usr/local/bin/mixer -q -s 60 # turn the sound up to "nearly-daytime" level again 15 17 * * * /usr/local/bin/mixer -q -s 70 # turn the sound down to "nighttime" level 15 22 * * * /usr/local/bin/mixer -q -s 55 # # Speech/Festival Stuff # # announce time every half hour 0,30 9-23 * * * /home/rb/code/perl/speech/speak_time # check if diskspace is low, if it is - speak it to me 25 10-22 * * * /home/rb/code/perl/speech/speak_lowdiskspace # tell me to take a break from typing 2,22,42 10-22 * * * /home/rb/code/perl/speech/speak_relax # check if i need to do backups, if i do - speak it to me 20,50 10-20 * * * /home/rb/code/perl/speech/speak_backup 16,46 10-20 * * * /home/rb/code/perl/speech/speak_pilot_backup # reminders to take medications 45 10 * * * /home/rb/code/perl/speech/speak_meds "breakfast" 25 13 * * * /home/rb/code/perl/speech/speak_meds "lunch" 02 16 * * * /home/rb/code/perl/speech/speak_meds "malic acid" 45 19 * * * /home/rb/code/perl/speech/speak_meds "dinner" 33 22 * * * /home/rb/code/perl/speech/speak_meds "bedtime" # reminders to use eyedrops 3/120 10-22 * * * /home/rb/code/perl/speech/speak_eyedrops 45/90 10-22 * * * /home/rb/code/perl/speech/speak_eyedrops "medicated" # Reminder to do exercises # Remember: program exits with no output 1/3 times, to make timing more random 14,44 10-22 * * * /home/rb/code/perl/speech/speak_exercises 29,59 10-21 * * * /home/rb/code/perl/speech/say "Move your legs around." # # Generate semipermanant files # # update my sig file 4,34 * * * * /home/rb/bin/makesig # move any nutscrape/galeon bookmarks onto my lynx list daily 2 2 * * * /home/rb/bin/incomingbookmarks 3 2 * * * /home/rb/code/perl/gincomingbookmarks/incomingbookmarks # Generate the new master playlists of mp3/ogg files once a week 6 6 * * 4 rm -f /share/Sound/Classical/all && find /share/Sound/Classical -name '*.mp3' -o -name '*.ogg' > /share/Sound/Classical/all 8 6 * * 4 rm -f /share/Sound/Background/all && find /share/Sound/Background -name '*.mp3' -o -name '*.ogg' > /share/Sound/Background/all 10 6 * * 4 rm -f /share/Sound/Jazz/all && find /share/Sound/Jazz -name '*.mp3' -o -name '*.ogg' > /share/Sound/Jazz/all 11 6 * * 4 rm -f /share/Sound/Spoken/all && find /share/Sound/Spoken -name '*.mp3' -o -name '*.ogg' > /share/Sound/Spoken/all 12 6 * * 4 rm -f /share/Sound/all && find /share/Sound -name '*.mp3' -o -name '*.ogg' > /share/Sound/all # # Rotate logfiles and backup files # # Shift backup mail folder around daily 6 5 * * * mv -f /home/rb/Mail/backup /home/rb/Mail/backup.yesterday # Shift logs around weekly 6 5 * * 1 mv -f /home/rb/logs/procmail /home/rb/logs/procmail.lastweek 6 5 * * 2 killall fetchmail && mv -f /home/rb/logs/fetchmail /home/rb/logs/fetchmail.lastweek && /usr/bin/fetchmail # # Make sure daemons are all kicked # # restart fetchmail in case it stopped working 1 7 * * * killall fetchmail && sleep 5 && /usr/bin/fetchmail