*BSD News Article 24720


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!EU.net!dxcern!tifrvax.tifr.res.in!bhiksha
From: bhiksha@tifrvax.tifr.res.in
Subject: NetBSD 0.9: Connecting a dot-matrix printer on lpt2
Message-ID: <6DEC93.10103375@tifrvax.tifr.res.in>
Sender: news@dxcern.cern.ch (USENET News System)
Organization: Tata Institute of Fundamental Research
Date: Mon, 6 Dec 1993 10:10:33 GMT
Lines: 23


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:\
        :ms=crtscts:sh:\
        :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\ ....

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)

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.

thanks
bhiksha
bhiksha@arjun.csc.tifr.res.in