Ulpt problems.
Bernt Hansson
bah at bananmonarki.se
Mon Jul 27 00:15:15 UTC 2015
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|*
More information about the freebsd-questions
mailing list