Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2014 08:40:33 -0700 (PDT)
From:      Beeblebrox <zaphod@berentweb.com>
To:        freebsd-questions@freebsd.org
Subject:   printcap configuration problem
Message-ID:  <20140718183958.1864052a@rsbsd.rsb>
In-Reply-To: <alpine.BSF.2.11.1407180725500.77290@wonkity.com>
References:  <1405676044178-5929730.post@n5.nabble.com> <alpine.BSF.2.11.1407180554080.77290@wonkity.com> <53C919E0.6070008@bananmonarki.se> <alpine.BSF.2.11.1407180725500.77290@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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: <owner-freebsd-questions@FreeBSD.ORG>
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 <freebsd-questions@freebsd.org>; 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 <freebsd-questions@freebsd.org>; 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 <wblock@wonkity.com>
To: Beeblebrox <zaphod@berentweb.com>
Subject: Re: printcap configuration problem
In-Reply-To: <20140718183958.1864052a@rsbsd.rsb>
Message-ID: <alpine.BSF.2.11.1407180952160.39487@wonkity.com>
References: <1405676044178-5929730.post@n5.nabble.com>
 <alpine.BSF.2.11.1407180554080.77290@wonkity.com>
 <53C919E0.6070008@bananmonarki.se>
 <alpine.BSF.2.11.1407180725500.77290@wonkity.com>
 <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 <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: 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.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20140718183958.1864052a>