<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 18, 2009, at 12:35 PM, Jack wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br>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.<br><br>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.<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>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.</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div>___________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>