URI to include additional information

Jack jax at nwmt.us
Wed Nov 18 12:35:43 PST 2009


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.

Looking at this site, http://info.iet.unipi.it/~luigi/FreeBSD/cups.html#patch1, this person used to have a patch available - I'm assuming for a 1.2 release, but it might have been worth looking at.  Anyway, his idea would work fine for me:

To accept URIs of the form

    http://server:port/resource::username

and terminate the resource at the '::' marker, with the remaining part constituting the username (which can be an email address, or server name, whatever).

Potentially, I could make it such as:

http://server:port/resource::server&my@email.int  and pass in the emails on a per user basis and make this a very much print-to-email setup.

what I'm wondering is:
1) is this already done?
2) if not, are there any pointers?
3) is there a better way?

thanks,
Jack




More information about the cups mailing list