Date: Wed, 11 Sep 1996 10:40:58 +0200 (MET DST) From: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> To: graham@fgate.flevel.co.uk (Graham Breach) Cc: questions@FreeBSD.org Subject: Re: Digital ScriptPrinter Message-ID: <199609110840.KAA08185@gilberto.physik.rwth-aachen.de> In-Reply-To: <199609101542.QAA14700@fgate.flevel.co.uk> from Graham Breach at "Sep 10, 96 04:42:32 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
>
> Does anyone know how to get a Digital ScriptPrinter LN03R
> serial PostScript printer to work under FreeBSD?
>
> I have been trying to use lprps, but without much luck.
>
>
> Please cc replies to graham@flevel.co.uk
>
This is the /etc/printcap I once used: (now I have a DecLaser 3500)
lp0|local laser printer:\
:lp=/dev/cuaa2:\
:rw:\
:of=/usr/local/bin/lpof:\
:fc#0000374:fs#0000003:br#38400:\
:xc#0:xs#0040040:sf:sb:br#38400:\
:mx#0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
/usr/local/bin/lpof was a C program which was a hack and quite
inadequate so that I cannot post it here. Instead I would suggest
to use textps (lprps).
What exactly doesn't work. You can use an if (input filter) like:
#!/bin/sh
#
# psif - Print PostScript or plain text on a PostScript printer
# Script version; NOT the version that comes with lprps
# Installed in /usr/local/libexec/psif
#
read first_line
first_two_chars=`expr "$first_line" : '\(..\)'`
if [ "$first_two_chars" = "%!" ]; then
#
# PostScript job, print it.
#
( echo $first_line ; cat )
else
#
# Plain text, convert it, then print it.
#
( echo $first_line; cat ) | /usr/local/bin/textps
fi
exit 0
--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609110840.KAA08185>
