D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] triggering an event from serving a page?

 

Dan Dart wrote:
> 
> Except I don't know how to beep when some standard output is displayed

"beep -s"

I think "tail -f" might be problematic with restarts.

If you want to do it permanently you probably want to log to a pipe.

aptitude install beep

The hack apache logfile to do something like.

CustomLog "| tee /var/log/apache2/blahblah.log | grep 'regexptomatch' |
beep -s >/dev/null"

Not tested - use at your own peril, check your logging and log rotation
still works!

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html