How to query the originating hostname from the C API?

Opher Shachar ophers at ladpc.co.il
Wed Jan 17 05:22:36 PST 2007


> Hi,
>
> I maintain a simple in-house monitoring application. I would like to extended the list of queued jobs to display the origination hostname.
> In the web GUI this is quite easily done by extending the template file, but apparently that function is not exported to the C API, at least I can't find a field in cups_jobs_t.
>
> Any idea how to achieve this?
>
> Regards,
>   Dominik

You need not extend the CGIs for that.
Add {job_originating_host_name} in jobs.tmpl where appropriate.

Cheers,
Opher Shachar.




More information about the cups mailing list