Skip to content

Instantly share code, notes, and snippets.

@yendor
yendor / notify-apache-errors.sh
Created November 14, 2011 05:08 — forked from dave1010/notify-apache-errors.sh
notify-apache-errors.sh
#!/bin/bash
# use ubuntu's notification system to let us know when there's something new in the apache error log
TAIL=/usr/bin/tail
if [ -x /usr/bin/inotail ]; then
TAIL="/usr/bin/inotail"
fi
$TAIL -n0 -f /var/log/apache2/error.log | while read line
do