How do I tell when a CUPS print jobs has been completed plus info about that job?
- by Lawrence Johnston
I need to know each time a Mac print job is created/completed, plus some information about that job (what was printed, pages, copies, etc).
The best method I've come up with thus far is to use kqueue() on /var/spool/cups/ and then parse the c##### files as they're created, but I'm wondering if there's a better way.