USB Panic Button Daemon is a driver and trigger tool for the USB panic button. After starting the daemon, each time you press the button, your command is executed. It has been tested on Linux 2.6, though it should work on most Unix-like systems.
libsigrok is a shared C library which provides basic hardware access drivers for logic analyzers, oscilloscopes, MSOs, multimeters, dataloggers, and more. It also provides input/output file format support.