What Id like to do is to have a button connected to a com port, have a script running that could listen for the circuit to close (push the button) and launch an external program once it has been.
What Id like to know, if someone can tell me, is how to go about listening for the circuit to close on the port.