Can CUPS filter driver get the IP info in shared printer environment

keens312 keens312 at hotmail.com
Tue May 5 16:55:45 PDT 2009


> keens312 wrote:
> > Hi Michael,
> >
> > A USB printer connected to a CUPS system and shared over network.
> >
> > I want to know if the CUPS system perceive the address of the computer who initiated the printing?
> >
> > The /var/log/cups/error_log cannot log who did the printing, so that's hard to do the admin and accouting works.
>
> The job-originating-host-name attribute (which is logged in the
> page_log file) specifies the source host of the job.
>
Yes, I can see the info in page_log file.
Is there any cups api that I can use to get the job-originating-host-name in my filter driver?




More information about the cups-devel mailing list