[cups.general] Can a filter determine if a job originates from a different CUPS server?
Michael Collin Nielsen
michael at hum.aau.dk
Wed Apr 22 01:00:51 PDT 2009
Hi
I'm investigating if it is possible to implement a cups server that
receives jobs from a number of other cups servers each with their own
userdomains. I need to do accounting on the jobs.
I have a snmp accounting script in use as a backend that is able to do
the accounting based on the username available with the job. I have a
different backend for a "virtual printer" that is able to respool the
job that it has received to a "real printer", and in that process change
the username to a username and a domain. However in order to make this
as fleksible as possible I would like to add the domain part based on
where the job was received from.
From the commandline options for the backend I'm able to get the
original username from the other cups-server, but is there any way of
determining which server I received the job from? Or is it possible to
call different backends based on which server the job is received from?
I use the Net:CUPS* perl modules for my scripts, but searching them and
the CUPS API doku has not given me any clues...
Regards
-Michael Nielsen
Aalborg University
Denmark
More information about the cups
mailing list