Cron jobs

| | [C]olor

Cool things to do with cron:

Play Westminster quarters

0 10-22 * * * ffplay -autoexit -nodisp -volume 10 -loglevel quiet ~/Music/clockfull.ogg &&  for (( i=0; i < $(date +"\%l"); i++ )); do ffplay -autoexit -nodisp -volume 25 -loglevel quiet ~/Music/bell.ogg; done
30 10-21 * * * ffplay -autoexit -nodisp -volume 10 -loglevel quiet ~/Music/clockhalf.ogg

Backups

0 0 * * * ~/backup-rsync.sh >> /nas2/sergioro/backup/backup.log 2>&1 

Reminders

*/5 * 27-31 10 * notify-send "Cancel newspaper subscription"
*/20 * * 5 * notify-send "White sands full moon https://www.nps.gov/whsa/planyourvisit/full-moon-night.htm"

Scripts

@hourly     . ~/.bash/cron.sh; cron::move_scans
*/5 * * * * . ~/.bash/cron.sh; cron::update_cmus_playlists
*/5 * * * * . ~/.bash/cron.sh; cron::visitor_notify

Send emails, etc.