[cups.general] cupsGetJobs() 1.4b2 returns error "The printer or class was not found."

Michael R Sweet msweet at apple.com
Wed Feb 18 13:14:14 PST 2009


John A. Murdie wrote:
> I've a little program running as root whose job it is to call cupsGetJobs(&jobs, NULL, 0, CUPS_WHICHJOBS_ALL) once an hour and call cupsCancelJob() for any job which has been held for 24 hours or more. (This to keep our job queue clean.) It works fine with 1.3.*, but for a 1.4b2 test installation I'm getting the return value -1 and the error "The printer or class was not found."
> 
> Of course, this may be a result of an error on my part, but I can't see one yet. Under what circumstances would cupsGetJobs(&jobs, NULL, 0, CUPS_WHICHJOBS_ALL) return this error? Has 1.4b2 been tightened up in this area in any way?

It's a bug, please file it so we can track the fix:

     http://www.cups.org/str.php

Thanks!

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list