Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!subnet.sub.net!ppcnet.ppc.sub.org!rumtifsl.ruessel.sub.org!strix.ruessel.sub.org!ura From: ura@strix.ruessel.sub.org (Ulf Andrick) Subject: Re: NetBSD: Connecting a printer on the lpt port.. repost of question (beg pardon) Organization: Nocturnal Unix System in Kaiserslautern, Germany References: <8DEC93.15153130@tifrvax.tifr.res.in> Message-ID: <CHuAE9.45w@strix.ruessel.sub.org> X-Newsreader: TIN [version 1.1 PL8] Date: Fri, 10 Dec 1993 21:58:43 GMT Lines: 46 In <8DEC93.15153130@tifrvax.tifr.res.in> bhiksha@tifrvax.tifr.res.in writes: : I had posted this request before, but i'm not sure if i have recieved : any replies because the mailer on my machine screwed up. I just set it : right. Pardon me if this gets a bit monotonous and please reply if you : can...: : I want to put a dot-matrix (Epson FX 100) on the LPT1 (lpt2 of dos). : I am not very familiar with the printcap stuff, so i pulled the following : out of a sun 3 and modified the device: : lp|ex|fx 100:\ : :lp=/dev/lpt1:sd=/var/spool/lpd:\ : :br#9600:mx#0:lf=/var/spool/lpd/lpd-errs:\ ^^^^^^^ Baud rate is only needed for serial lines. : :ms=crtscts:sh:\ ^^^^^^^^^^ Also only relevant for serial lines. : :tr=\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ .... This is a string to print when the queue is empty. The idea of this setting seems to be that the last page printed is to be ejected with LFs. An FF might be a better idea if you want this at all. : Firstly, when i do a cat filename >/dev/lpt1 i get : status 0 : device busy : (this is what i get for lpt0 too, though i have nothing connected there) I know that! This `status 0' polluted my system log for some time. (I discovered that it came from the printer driver only when I actually wanted to get it working.) I don't have netbsd, but it seems to me that it still has the old broken lpt driver. Use lpa instead. : What exatctly do i do to get the thing working? My knowledge of devices and : printcaps is restricted to what i get in the manpages. Your real problem is the broken printer driver. When you cat to the lpr device directly the printcap isn't involved at all. -- Ulf Andrick ura@strix.ruessel.sub.org