Date: Sun, 26 Jul 2015 18:20:32 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Bernt Hansson <bah@bananmonarki.se> Cc: freebsd-questions@freebsd.org Subject: Re: Ulpt problems. Message-ID: <alpine.BSF.2.20.1507261817330.23369@wonkity.com> In-Reply-To: <55B5780D.6050600@bananmonarki.se> 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> <55B5780D.6050600@bananmonarki.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-questions@freebsd.org> 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 <freebsd-questions@mailman.ysv.freebsd.org>; 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 <freebsd-questions@freebsd.org>; 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 <bah@bananmonarki.se> 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 <wblock@wonkity.com> Subject: Re: Ulpt problems. 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> <55B5780D.6050600@bananmonarki.se> <alpine.BSF.2.20.1507261817330.23369@wonkity.com> In-Reply-To: <alpine.BSF.2.20.1507261817330.23369@wonkity.com> 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 <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>; List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1507261817330.23369>