From owner-freebsd-questions@freebsd.org Mon Jul 27 00:20:36 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 5C6E59AA2B3 for ; Mon, 27 Jul 2015 00:20:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EF596990 for ; Mon, 27 Jul 2015 00:20:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t6R0KWVs039668 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 26 Jul 2015 18:20:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t6R0KWTE039665; Sun, 26 Jul 2015 18:20:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 26 Jul 2015 18:20:32 -0600 (MDT) From: Warren Block To: Bernt Hansson cc: freebsd-questions@freebsd.org Subject: Re: Ulpt problems. In-Reply-To: <55B5780D.6050600@bananmonarki.se> Message-ID: 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> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 26 Jul 2015 18:20:32 -0600 (MDT) Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8BIT 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:20:36 -0000 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? > /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. From owner-freebsd-questions@freebsd.org Mon Jul 27 01:21:48 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 076679AAE25 for ; Mon, 27 Jul 2015 01:21:48 +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 708C6FE0 for ; Mon, 27 Jul 2015 01:21:46 +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 t6R1Lhfu017314; Mon, 27 Jul 2015 03:21:43 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <55B587A7.4060400@bananmonarki.se> Date: Mon, 27 Jul 2015 03:21:43 +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> In-Reply-To: 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: Mon, 27 Jul 2015 01:21:48 -0000 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.