ev_bell can call external programs when the Linux kernel generates a simple sound event like the bell signal from the console. It looks for sound events on /dev/input/event*, parses them, and calls the external program afterwards. The fields of the event packet can be put inside of the argument string of that program.