From owner-freebsd-questions Sun Mar 5 8:25:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.whtz.com (m8.z100.com [209.73.193.8]) by hub.freebsd.org (Postfix) with SMTP id 8FE5237BA5A for ; Sun, 5 Mar 2000 08:25:32 -0800 (PST) (envelope-from courtney@whtz.com) Received: by mail.whtz.com(Lotus SMTP MTA v4.6.2 (693.3 8-11-1998)) id 85256899.00592577 ; Sun, 5 Mar 2000 11:13:42 -0500 X-Lotus-FromDomain: Z100 From: courtney@whtz.com To: questions@freebsd.org Message-ID: <85256899.0059245E.00@mail.whtz.com> Date: Sun, 5 Mar 2000 11:13:39 -0500 Subject: Programming Question Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hey everyone- I am looking for a way to use a closure to trigger an event in a program running on my BSD box. Let me clarify, I want to be able to use a switch or other electrical closure, attached to the computer in some way (I know it can be done with the parallel port) and use it to trigger events- I.E. when you get a certain closure, send "x" data out the serial port, when you get another closure send "y" data out the serial port. Can anyone point me in a direction on how to go about implementing such a program and what code to use to get the information from the ports. I am willing to add a GPI card or the like to the system if need be, but I would rather not have to ad such an expensive device into the system. Thanks for all of your help! Bernie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message