From owner-freebsd-questions@freebsd.org Tue Jul 28 23:04:55 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 78A319AD76A for ; Tue, 28 Jul 2015 23:04:55 +0000 (UTC) (envelope-from bah@usenet4all.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 E95EFAD8 for ; Tue, 28 Jul 2015 23:04:53 +0000 (UTC) (envelope-from bah@usenet4all.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 t6SN4pwH071352; Wed, 29 Jul 2015 01:04:51 +0200 (CEST) (envelope-from bah@usenet4all.se) Message-ID: <55B80A99.4030900@usenet4all.se> Date: Wed, 29 Jul 2015 01:04:57 +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: freebsd-questions@freebsd.org, Warren Block 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> <55B5780D.6050600@bananmonarki.se> <55B587A7.4060400@bananmonarki.se> In-Reply-To: <55B587A7.4060400@bananmonarki.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 28 Jul 2015 23:04:55 -0000 On 2015-07-27 03:21, Bernt Hansson wrote: > > > On 2015-07-27 02:20, Warren Block wrote: >> On Mon, 27 Jul 2015, Bernt Hansson wrote: >> >>> 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 - >> >> Wait, so it did not work? What happened? What does >> ls -lh /usr/local/bin/enscript >> show? >> > -r-xr-xr-x 1 root wheel 187K 10 Jul 11:07 /usr/local/bin/enscript >>> /etc/printcap >>> >>> lp:\ >>> :lp=/dev/ulpt0:\ >>> :sh:\ >>> :mx#0:\ >>> :sd=/var/spool/lpd/lp:\ >>> :lf=/var/log/lpd-errs: >> >> That is not the printcap shown in the examples. Note the missing "n" >> in "unlpt0". That is important for some printers. But this printcap >> does not have a filter, either, so it is not related to the problem >> above. Let's fix one thing at a time. > Well "n" or no "n" The printer is stone cold. I'll try a reboot to see > if that loosen up things. Changed ulpt0 to unlpt0, rebooted and it printed the queue and now it prints as it should. Thank you Warren and others for your time and input.