From owner-freebsd-questions@freebsd.org Mon Jul 27 00:15:15 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21E6C9AA1C6 for ; Mon, 27 Jul 2015 00:15:15 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F8C1794 for ; Mon, 27 Jul 2015 00:15:12 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id t6R0F9uG015487; Mon, 27 Jul 2015 02:15:09 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <55B5780D.6050600@bananmonarki.se> Date: Mon, 27 Jul 2015 02:15:09 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Warren Block CC: freebsd-questions@freebsd.org Subject: Re: Ulpt problems. References: <55B0BE81.70208@bananmonarki.se> <884706.24465.bm@smtp116.sbc.mail.ne1.yahoo.com> <55B1A2D3.9040707@bananmonarki.se> <55B217F6.1000603@bananmonarki.se> <55B5095F.7040403@bananmonarki.se> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 00:15:15 -0000 On 2015-07-27 01:34, Warren Block wrote: > On Sun, 26 Jul 2015, Bernt Hansson wrote: > >>> Please start by testing without any filters. Use the printcap file >>> shown in >>> >>> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html#printing-lpd-setup >>> >>> and test with the small PostScript sample at the end of >>> >>> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html#printing-lpd-filters-ps2pcl >>> >>> >> That did work... Strange. But if I add a filter like this >> >> :if=/usr/local/libexec/enscript:\ from the handbook it stops >> working. Odd to say the least. > > Not necessarily, it just means something is wrong with the filter. Is > print/enscript-letter or print/enscript-a4 installed? > Enscript-a4 and a2ps is installed. > The filters can be tested directly. Send some text to the filter: > > lptest | /usr/local/libexec/enscript > > It will produce a bunch of PostScript output, the last lines of which > are: > > %%Trailer > %%Pages: 4 > %%DocumentNeededResources: font Courier-Bold Courier > %%EOF > [ 4 pages * 1 copy ] left in - > > If that does not work, check the contents of the > /usr/local/libexec/enscript file and the permissions set on it. > > The content of enscript is; #!/bin/sh /usr/local/bin/enscript -o - /etc/printcap lp:\ :lp=/dev/ulpt0:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: I'm back to square one. Nothing prints Not even *|printf "%%\!PS \n /Helvetica findfont 18 scalefont setfont \ 72 432 moveto (PostScript printing successful.) show showpage \004" | lpr|*