Skip to content

Instantly share code, notes, and snippets.

@lhagan
lhagan / rss-subscribers.sh
Created October 13, 2012 18:07
Bash script to parse Apache log for a count of RSS subscribers and email it to you
#!/bin/sh -e
# --- Required variables ---
RSS_URI="/rss.xml"
MAIL_TO="your@email.com"
LOG_FILE="/home/$USER/var/log/lighttpd/access.log"
LOG_DATE_FORMAT="%d/%b/%Y"
# --- Optional customization ---