Blog IndexPosts by TagHome

Remembering Birthdays

Posted <2017-02-19 Sun 18:10> by Aaron S. Jackson.

Remembering birthdays without Facebook is a bit tricky and was recently reminded of this over the past couple of weeks. I store my contacts in an org file (Emacs org-mode) on my home server, so I wrote a short script which runs at 1AM each day from Cron:

#!/usr/local/bin/bash

d=$(date +%d/%m)
people=$(grep $d Contacts.org)

if [ -n "$people" ]; then
    echo "$people" | \
        awk -F'|' '{ print $2 }' | \
        mail -s "birthdays" someone@blah.bluh
fi

Related posts:

Tags: hacks

Blog IndexPosts by TagHome

You can verify this page with the following command:
gpg --verify <(curl -s http://aaronsplace.co.uk/blog/2017-02-19-birthday-reminders.asc) <(curl -s http://aaronsplace.co.uk/blog/2017-02-19-birthday-reminders.html)

Copyright 2007-2018 Aaron S. Jackson (compiled: Sun 3 Jun 13:24:44 BST 2018)