SOLVED: Re: [cups.general] Question on doing print accounting and backends

Rob Tanner rtanner at linfield.edu
Thu Feb 9 13:26:03 PST 2006


The printer name is an environment variable ($ENV{PRINTER}).


Rob Tanner said the following on 02/09/2006 10:01 AM:

> Here I am replying to my own post.  Is the jobid always and without 
> fail <printer name>-<sequence number>?
> -- Rob
>
> Rob Tanner said the following on 02/09/2006 09:26 AM:
>
>> I'm moving from an lprng print system to CUPS, and we currently 
>> implement a by-the-page charge back print accounting system.  With 
>> CUPS, I have already discovered the "accsnmp" backend wrapper, and it 
>> works like a champ.  The problem is that the actual program that I 
>> need to call to record the accounting information (logs it to a 
>> database) requires not the printer IP, but the printer name.  The 
>> wrapper has the IP, but because several physical printers have more 
>> than one name for a variety of reasons, there is not a simple 
>> one-to-one relationship between the IP address and the printer name.
>> Does the DeviceURI follow the standard URL convention that will allow 
>> me to append something like "?name=myprinter" in order to capture the 
>> name of the printer?
>>
>> Thanks,
>> Rob
>>
>>
>





More information about the cups mailing list