From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 12:49:29 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7D3137B401 for ; Fri, 25 Jul 2003 12:49:29 -0700 (PDT) Received: from asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A24F43F75 for ; Fri, 25 Jul 2003 12:49:28 -0700 (PDT) (envelope-from admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.12.9/8.12.9) id h6PJnRVY038092 for freebsd-questions@freebsd.org; Fri, 25 Jul 2003 21:49:27 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Message-Id: <200307251949.H6PJNQRS038082@asarian-host.net> Date: Fri, 25 Jul 2003 19:49:26 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: cbKGVDqIzQrk+/OXvvWaFl4pr0VAjVcx2bZzclo5tOJKU+qSjh1VCGdTPllLArtmDWhXJxaGgQyK9KhbI7f+Wg== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "Daan Vreeken [PA4DAN]" References: <200307251722.H6PHMFRS032800@asarian-host.net> <200307251942.54397.Danovitsch@Vitsch.net> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Auth: Asarian-host PGP signature iQEVAwUAPyGJxzFqW1BleBN9AQG+3gf/RRXHxplKMTvrLx9iQUJtQUos5oNZswdd plQLdAn62P+tzJpKUgJsJ5RSM1bHani2CjP83+ygE7EhhfPDwZo+sAHSqVK1zq8I WFTgAGVysLhvNkL5OPGGMr1XfFmqcE5cC0In07wCD9IEN4TOKEbWpHs/OaAbP1wr 40FZ7hraFiEZKOByb1jKIgUr5uooukndQPmAA6tk9o3a7RCFRbeWsDsjqgLcyFc6 nBUb4PQeW95rUqvdriZafwXYDbIHmkvgVP5OJFlvRrqZItdaJ8ufczkNXeyALWic wQrSbqi27LFQfKdwTInTznFT20aJnaKl1/Z2Gbwt0TuUNK/kx8VMvw== =OX4J cc: FreeBSD-questions@freebsd.org Subject: Re: Writing to parallel port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 19:49:30 -0000 ----- Original Message ----- From: "Daan Vreeken [PA4DAN]" To: "Mark" Cc: Sent: Friday, July 25, 2003 7:41 PM Subject: Re: Writing to parallel port > On Friday 25 July 2003 19:22, Mark wrote: > > Hello, > > > > Has anyone an idea how to set/unset a bit on a parallel port in > > freebsd 4.7? I installed Device::ParallelPort from CPAN > > (Perl 5.8.0), but that does nothing (seems made for linux). > > > > Or if someone could point me to a little c-source, that would be > > helpful too; all I need is to toggle a bit to switch a relay. > Have a look at this piece of code if wrote : > http://vitsch.net/cgi-bin/gpl/cat.cgi/lampd/v1.0?lampd.c > It's a very small udp network daemon to control my roomlights over the > LAN. > > Basically you need to open /dev/io to get io read/write permission, > after that you are free to bang all IO-ports you want. Thank you! :) Opening /dev/io did the trick. - Mark