[cups.general] URI to include additional information

Michael Sweet msweet at apple.com
Wed Nov 18 16:39:06 PST 2009


On Nov 18, 2009, at 12:35 PM, Jack wrote:

> Hello,
> We are in a situation where we have about 40 servers that all have jobs to print.  Most of the time things go well, but when it doesn't then all the printjobs hit a "default" printer.  In my case, I've created a zPDF printer as default and this works fine.  Using a postprocessing script, I'm able to get the cups server to email us whenever the zPDF printer has been used.  So, all this works... good. This is using the cups-pdf driver btw, on cups 1.3.9.
> 
> Here's where i need a little help.  I want to be able to determine the server that request the print in the email.  So I need to pass the server name or IP into the postprocessing script.

The job-originating-host-name value is passed as an option in argv[5] starting in CUPS 1.4. Prior to that you had to do an IPP query to get that attribute from the current job.

___________________________________________________
Michael Sweet, Senior Printing System Engineer



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20091118/96f74850/attachment-0001.html>


More information about the cups mailing list