From owner-freebsd-hackers Mon Feb 13 13:06:34 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id NAA25466 for hackers-outgoing; Mon, 13 Feb 1995 13:06:34 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id NAA25455 for ; Mon, 13 Feb 1995 13:06:25 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA26331; Mon, 13 Feb 1995 21:03:12 +0100 Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP id VAA03140 for hackers@FreeBSD.org; Mon, 13 Feb 1995 21:03:11 +0100 Received: by bonnie.tcd-dresden.de (8.6.8/8.6.6) id UAA18869; Mon, 13 Feb 1995 20:53:05 +0100 From: j@uriah.sax.de (J Wunsch) Message-Id: <199502131953.UAA18869@bonnie.tcd-dresden.de> Subject: Re: lpt To: aledm@relay-europe.ps.net (Aled Morris) Date: Mon, 13 Feb 1995 20:53:05 +0100 (MET) Cc: hackers@FreeBSD.org In-Reply-To: from "Aled Morris" at Feb 13, 95 04:47:36 pm X-Phone: +49-351-8141 137 Reply-To: joerg_wunsch@uriah.sax.de X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 858 Sender: hackers-owner@FreeBSD.org Precedence: bulk As Aled Morris wrote: | | Am I supposed to be able to "echo hello > /dev/lpt0" to test my parallel | printer? of course | | Needless to say, it doesn't work. It just hangs for a minute and comes | back "/dev/lpt0: Device busy". | lpt0 at 0x3bc-0x3c3 irq 7 on isa | lpt0: Interrupt-driven port | lp0: TCP/IP capable interface Can you try to find out if the open() would hang or the write()? [Short C program à la ``Hello world''.] Watch out for possible console/syslog messages. Perhaps your cabling is bad, you can try to configure your lpt port for polled IO, simply omit the ``irq 7'' from the config line. (just guessing...) -- cheers, J"org work: --- no longer --- private: joerg_wunsch@uriah.sax.de Never trust an operating system you don't have sources for. ;-)