USB Button Run Shell Script
Bit of a strange one. Does any one know of, or has made a Button (physical) that can connect to a computer (preferably linux based) via USB that when pressed will execute a shell command?
I've had a quick google and all I could find was the cheap 'Panic Button' toys. I'd want something similar button wise but want it to do more than open a screensaver etc.
Would it be possible to hack apart a USB keyboard, solder a button bought at the local electric shop to the correct part of the keyboards circuit board and somehow have that execute the command?
Not looking for anything solid just any ideas of how I might go about it.