Date: Mon, 27 Jul 2015 02:15:09 +0200 From: Bernt Hansson <bah@bananmonarki.se> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org Subject: Re: Ulpt problems. Message-ID: <55B5780D.6050600@bananmonarki.se> In-Reply-To: <alpine.BSF.2.20.1507261727080.23369@wonkity.com> References: <55B0BE81.70208@bananmonarki.se> <884706.24465.bm@smtp116.sbc.mail.ne1.yahoo.com> <55B1A2D3.9040707@bananmonarki.se> <alpine.BSF.2.20.1507232131490.46367@wonkity.com> <55B217F6.1000603@bananmonarki.se> <alpine.BSF.2.20.1507260916120.4628@wonkity.com> <55B5095F.7040403@bananmonarki.se> <alpine.BSF.2.20.1507261727080.23369@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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|*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55B5780D.6050600>