From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 15:40:35 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0BC63760 for ; Fri, 18 Jul 2014 15:40:35 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DDFCF215E for ; Fri, 18 Jul 2014 15:40:34 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X8AGv-0007HE-89 for freebsd-questions@freebsd.org; Fri, 18 Jul 2014 08:40:33 -0700 Date: Fri, 18 Jul 2014 08:40:33 -0700 (PDT) From: Beeblebrox To: freebsd-questions@freebsd.org Message-ID: <20140718183958.1864052a@rsbsd.rsb> In-Reply-To: References: <1405676044178-5929730.post@n5.nabble.com> <53C919E0.6070008@bananmonarki.se> Subject: printcap configuration problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 15:40:35 -0000 Just an idea that I'd like to test if possible: Is there a way to parse a cups/ppd/*ppd file for lpd? So, for example /usr/local/libexec/lf2crlf (or any "if" file) maybe I would change to #!/bin/sh sed/awk /usr/local/etc/cups/ppd/HP_LaserJet_2100.ppd This is to test what is br=C4=B1ken in cups - the ppd (unlikely) or cups. Regards. ----- FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS -- View this message in context: http://freebsd.1045724.n5.nabble.com/printcap= -configuration-problem-tp5929730p5929887.html Sent from the freebsd-questions mailing list archive at Nabble.com. From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 15:55:52 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24FBBC51 for ; Fri, 18 Jul 2014 15:55:52 +0000 (UTC) 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 C806022AB for ; Fri, 18 Jul 2014 15:55:51 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s6IFtmmN040485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 18 Jul 2014 09:55:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s6IFtmte040482; Fri, 18 Jul 2014 09:55:48 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 18 Jul 2014 09:55:48 -0600 (MDT) From: Warren Block To: Beeblebrox Subject: Re: printcap configuration problem In-Reply-To: <20140718183958.1864052a@rsbsd.rsb> Message-ID: References: <1405676044178-5929730.post@n5.nabble.com> <53C919E0.6070008@bananmonarki.se> <20140718183958.1864052a@rsbsd.rsb> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 18 Jul 2014 09:55:48 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 15:55:52 -0000 On Fri, 18 Jul 2014, Beeblebrox wrote: > Just an idea that I'd like to test if possible: > > Is there a way to parse a cups/ppd/*ppd file for lpd? So, for example > /usr/local/libexec/lf2crlf (or any "if" file) maybe I would change to > > #!/bin/sh > sed/awk /usr/local/etc/cups/ppd/HP_LaserJet_2100.ppd > > This is to test what is br?ken in cups - the ppd (unlikely) or cups. Technically, sure. A program can check the PPD for printer features, then enable or configure those features according to settings in printcap or other files. That is one of the things that CUPS does. In practice, it may be somewhat involved. Unless you change models of printers frequently, it is probably easier to just manually set up the filter to do what is desired.