News for hackers. Stuff that matters.
Re:Turn a light bulb on with every new user or download by sly010 on Tuesday April 30, 2013 @03:42AM (#5630875)
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.

There are no comments on this comment yet.