From owner-freebsd-questions Wed Sep 11 01:34:14 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA21042 for questions-outgoing; Wed, 11 Sep 1996 01:34:14 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA21003 for ; Wed, 11 Sep 1996 01:33:53 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA29982; Wed, 11 Sep 1996 10:28:43 +0200 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id KAA08185; Wed, 11 Sep 1996 10:40:58 +0200 From: Christoph Kukulies Message-Id: <199609110840.KAA08185@gilberto.physik.rwth-aachen.de> Subject: Re: Digital ScriptPrinter In-Reply-To: <199609101542.QAA14700@fgate.flevel.co.uk> from Graham Breach at "Sep 10, 96 04:42:32 pm" To: graham@fgate.flevel.co.uk (Graham Breach) Date: Wed, 11 Sep 1996 10:40:58 +0200 (MET DST) Cc: questions@FreeBSD.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > 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