Is there any way to have my Linux box watch the parallel port and wait for a
pin to get shorted to ground (or another pin if that works better) and then
take an action? I'm hoping to find a way to do this with a simple BASH if
statement, so I can execute a command based on it. I'm not C/C++ literate,
so I wouldn't be able to write a program using one of those to do it. It can
be any pin on the port, but it has to be the parallel port (I need all of my
serial ports). Basically, I want to be able to have a button, that when
pressed, will send an email (I know how to write the rest of the BASH
script, just not how to monitor the parallel port for that condition). I
guess there are 2 ways of doing this, either directly watching the status of
the port, or checking the error level of an external program that does this
already for some purpose.
Thanks!
Matt