From owner-freebsd-questions Wed Jun 27 21:35:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by hub.freebsd.org (Postfix) with ESMTP id EA7C337B403 for ; Wed, 27 Jun 2001 21:35:24 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Received: from tedm.placo.com (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id f5S4UFl11405; Wed, 27 Jun 2001 21:30:15 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: , Subject: RE: Printing ASCII w/ lpd, apsfilter Date: Wed, 27 Jun 2001 21:30:15 -0700 Message-ID: <000e01c0ff8b$0777c280$1401a8c0@tedm.placo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG see http://www.freebsd.org/doc/en_US.ISO8859-1/books/corp-net-guide/index.html for a discussion of this and other useful printing issues Ted Mittelstaedt tedm@toybox.placo.com Author of: The FreeBSD Corporate Networker's Guide Book website: http://www.freebsd-corp-net-guide.com >-----Original Message----- >From: owner-freebsd-questions@FreeBSD.ORG >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of joup@mail.com >Sent: Wednesday, June 27, 2001 1:59 AM >To: freebsd-questions@FreeBSD.ORG >Subject: Printing ASCII w/ lpd, apsfilter > > >Hi, > >I'm trying to print an ASCII file to an HP Laserjet 5L. Plain postscript >printing seems to work ok-- if I use a2ps to convert the text file to ps, >it prints fine. But when I simply use "lpr somefile", it just prints a >page with > >Error: /typecheck in --closefile > Operand Stack: > --nostringval-- () > Execution > >Here's the relevant portion of /etc/princap; I think apsfilter is at least >being called, but it's not doing it's job right. > ># APS1_BEGIN:printer1 ># - don't delete start label for apsfilter printer1 ># - no other printer defines between BEGIN and END LABEL >lp|Printer1 auto:\ > :lp=/dev/lpt0:\ > :if=/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/spool/lpd/lp/log:\ > :af=/var/spool/lpd/lp/acct:\ > :mx#0:\ > :sh: >raw1|Printer1 raw:\ > :lp=/dev/lpt0:\ > :if=/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/raw1:\ > :lf=/var/spool/lpd/raw1/log:\ > :af=/var/spool/lpd/raw1/acct:\ > :mx#0:\ > :sf:\ > :sh: ># APS1_END - don't delete this > > >Thanks >Mark Miller > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message