From owner-freebsd-questions Wed Jun 27 1:58:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by hub.freebsd.org (Postfix) with ESMTP id 3004237B405 for ; Wed, 27 Jun 2001 01:58:37 -0700 (PDT) (envelope-from mjmiller@uclink4.berkeley.edu) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) with ESMTP id f5R8wbZ65569 for ; Wed, 27 Jun 2001 01:58:37 -0700 (PDT) (envelope-from mjmiller@uclink4.berkeley.edu) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Wed, 27 Jun 2001 01:58:37 -0700 (PDT) From: X-X-Sender: To: Subject: Printing ASCII w/ lpd, apsfilter Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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