Subject: Re: /dev/lp ..to be or not to be
To: Mark Murdock <fee@tetrahome.tetranet.net>
From: Paul Goyette <paul@pgoyette.bdt.com>
List: port-mac68k
Date: 02/12/1997 17:30:32
Well, here's my /etc/printcap that let's me use my PostScript(tm) laser
printer. Note that the varios /etc/nenscript-* files referenced are part
of the nenscript program which encodes plain old text into PostScript.
You may not need these if your printer is a simple text printer. Or, you
may need to create filter scripts to do things like inserting line-feeds
at the appropriate place (like, maybe, after every carriage return?).
Good luck!
# $NetBSD: printcap,v 1.3 1996/05/08 17:19:45 thorpej Exp $
# @(#)printcap 5.3 (Berkeley) 6/30/90
#lp|local line printer:\
# :lp=/dev/lp:sd=/var/spool/lpd:lf=/var/log/lpd-errs:
lp|default printer:\
:lp=/dev/null:\
:lf=/var/spool/lp/logfile:\
:af=/var/spool/lp/acct:\
:sd=/var/spool/lp:\
:mx#0:sf:sh:rs:\
:if=/etc/nenscript-if-lp:
lp-land:\
:lp=/dev/null:\
:lf=/var/spool/lp-land/logfile:\
:af=/var/spool/lp-land/acct:\
:sd=/var/spool/lp-land:\
:mx#0:sf:sh:rs:\
:if=/etc/nenscript-if-lp-land:
lp-2up:\
:lp=/dev/null:\
:lf=/var/spool/lp-2up/logfile:\
:af=/var/spool/lp-2up/acct:\
:sd=/var/spool/lp-2up:\
:mx#0:sf:sh:rs:\
:if=/etc/nenscript-if-lp-2up:
# the raw printer
lp.raw|lzr960:\
:lp=/dev/tty01:br=9600:xc#0177777:\
:ms=-parity,ixon,-opost,-icanon,cs8,-echo,-oxtabs,-echoke,-echoctl,clocal:\
:lf=/var/spool/lp.raw/logfile:\
:af=/var/spool/lp.raw/acct:\
:sd=/var/spool/lp.raw:\
:mx#0:sf:sh:rs:
On Wed, 12 Feb 1997, Mark Murdock wrote:
> I'm having a few problems printing .. maybe you folks can help me out.
>
> I noticed that there is no /dev/lp, and no means to MAKEDEV one.
> /etc/printtab reflects that the printer is at /dev/lp.
>
> When using lpr, I get:
> "lpr: lp: device not found" (or something along those lines)
>
> After changing /etc/printtab to reflect /dev/tty01 (printer port),
> the same thing is still happening.
>
> It IS possible for me to cat filename > /dev/tty01, but this causes
> overlapping lines and terrible formatting.
>
> The printer is an imagewriter, computer is an SE/30 ..Generic22
> and latest snapshot in binaries. Any suggestions?
>
> Mark
>
>