Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (7 sloc) 341 Bytes
# use ubuntu's notification system to let us know when there's something new in the apache error log
# requires package libnotify-bin
tail -n0 -f /var/log/apache2/error.log | egrep 'Notice|Warning|Error|Fatal' | while read line
do
body=`echo $line | cut -f 9- -d ' '`
notify-send -c im.received -i error "Apache / PHP error" "$body"
done
Something went wrong with that request. Please try again.