I have a small project that I'm working on in my spare time and it involves a big red button (picture the ones from arcade game cabinets) attached to the serial port. Now keep in mind, I'm no programmer, but I'm pretty good at bash scripts. Is there a simple way that I can have a bash script monitor the serial port for this button to be pressed and then trigger a function within the script.
Basically what this will be is a linux box with a webcam and a mic and this button, and when the button is pressed, it will have ffmpeg capture 30 seconds of audio and video to an avi file and then wait for another press of the button. It would be ideal if somehow I could also have a red led go on during capture too. There is no real use that I have for this at the moment, it's just something I'm doing to see if it can be done. Does anyone have a simple solution to my serial port quandry? Thanks! -- Adam Melancon Work: http://www.lafayette.lib.la.us
