[cups.general] printers.conf syntax

Michael Sweet msweet at apple.com
Wed Aug 26 08:37:23 PDT 2009


The /etc/printers.conf file is the Solaris LP print configuration and  
*not* CUPS.

On Aug 26, 2009, at 6:06 AM, Thomas Stocker wrote:

> Hi all
>
> one more question from me. thanks for your patience with me :)
>
> I just noticed, that the cups version 1.3.9 on opensolaris(SPARC) has
> another syntax for /etc/cups/printers.conf than my cups 1.4-0.rc1 on  
> my
> fedora x64 box.
> I've found nothing appropriate in the changelog at
> http://www.cups.org/documentation.php/doc-1.4/whatsnew.html
>
> As i need to write a parser script for /etc/cups/printers.conf, i  
> need a
> clear statement which version is using which syntax for the printers
> definitions.
>
> OSOL (cups 1.3.9) writes it this way:
>
> # This file was automatically generated by cupsd(8) from the
> # /etc/cups/printers.conf file.  All changes to this file
> # will be lost.
> _all:all=e0e01,e0w01
> e0e01:\
>         :bsdaddr=prtsrv2,e0e01:\
>         :description=Optra T644:
> e0w01:\
>         :bsdaddr=prtsrv2,e0w01:\
>         :description=Optra T644:
> [...]
>
> cups 1.4-0.rc1 (2.6.29.6-217.2.8.fc11.x86_64) writes it this way:
>
> # Printer configuration file for CUPS v1.4rc1
> # Written by cupsd on 2009-08-26 13:45
> <DefaultPrinter HP-LaserJet-4050>
> Info HP LaserJet 4050 Series
> Location S/W-Drucker Staging
> MakeModel HP LaserJet 4050 Series Postscript (recommended)
> DeviceURI ipp://lpr.acceleris.ch/printers/tech_zol_bw
> State Idle
> StateTime 1251287120
> Type 8425668
> Filter application/vnd.cups-raw 0 -
> Filter application/vnd.cups-command 0 commandtops
> Filter application/vnd.cups-postscript 0 -
> Accepting Yes
> Shared Yes
> JobSheets none none
> QuotaPeriod 0
> PageLimit 0
> KLimit 0
> OpPolicy default
> ErrorPolicy stop-printer
> </Printer>
>
> Do I have missed recent changes? Or am I messing around with the wrong
> config files? Please correct me if I'm wrong: Cups is getting his
> initial printers config from the printcap directive in cupsd.conf  
> (which
> is defaulting to /etc/cups/printers.conf) ?? Or ist it just the  
> Solaris
> style from here?
>
>
> Quote manpage:
>
> "
>        Printcap
>
>        Printcap filename
>             Specifies the filename for a printcap file that is updated
> automatically with a list of available printers (needed for legacy
> applications); specifying Printcap with no filename disables  
> printcap gen-
>             eration.
>
>        PrintcapFormat bsd
>
>        PrintcapFormat plist
>
>        PrintcapFormat solaris
>             Specifies the format of the printcap file.
> "
>
> Many thanks in advance for your input and greets from switzerland
>
> T. Stocker
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list