|
|
|
|
|
by sly010
4797 days ago
|
|
Nice one!
When I did something similar, I found the clicking sound of the relay more satisfying, than a lightbulb, so I eventually completely removed the lightbulb. At the time I used MacMini, which was a tiny bit expensive for this very purpose (also not everyone in the office likes a blinking light 24/7) then eventually I came up with the following oneliner: tail -f "<access_log>" | grep --line-buffered "<whatev>" | sed -ue "s/^.*$/\x07/" I also needed to set the terminal bell to be a "click" instead of a "bell" for this to sound acceptable during
moderate traffic. |
|