[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sound bell when 'USB disconnect' in syslog



Camaleón wrote:
On Fri, 05 Aug 2011 13:11:24 -0500, Hugo Vanwoerkom wrote:

I am looking for a package that will sound the bell when 'USB
disconnect' appears in syslog.

I can write it myself, but does it already exist?

I'm not aware of any :-?

There is one pretty close to what you need but it only generates visual alerts:

udev-notify
http://udev-notify.learnfree.eu/

I think you will need something similar, based on udev for monitoring USB events and act accordingly using a set of rules...


Thanks, Camaleón. The beep backage actually has an example of doing it:

tail -f /var/log/xferlog | grep --line-buffered passwd | \
              beep -f 1000 -r 5 -s

I know I had seen it somewhere ;-)

Hugo


Reply to: