Clearing jobs which have been held too long
John A. Murdie
john at cs.york.ac.uk
Thu Mar 15 06:24:51 PDT 2007
I see that it is possible for a user to request that print jobs be held until a certain time - e.g. from the command line with e.g.:
lpr -ojob-hold-until=indefinite -Ppp23 doc.pdf
or
lpr -ojob-hold-until=12:56 -Ppp23 doc2.pdf
though neither the manual page for lpr(1) or the "Printing and options" web page in the CUPS 1.2. documentation - http://www.cups.org/documentation.php/options.html - describes this. (I don't know for sure that '12:56' is an acceptable time, either.) From the source of lpr(1), 'Indefinite' is that command's default hold time.
What I'd like as an administrator, however, is the ability to set a maximum hold time for jobs in cupsd.conf - 24 hours would be suitable at my site - after which the CUPS scheduler would automatically delete them. In an ideal world, the submitting user would also get E-mail to say that this had happened. I can't see an existing documentation entry for this in the CUPS 1.2. documentation cupsd.conf Reference - see http://www.cups.org/documentation.php/ref-cupsd-conf.html There is the 'Limit (Policy)' LimitRequestBody directive, but it's not clear to me whether I can use that to do what I want.
(Incidentally, there is a typo in this last-mentioned section of the document:
"Get-Printer-Attributes Gets informaion about a printer or class"
.)
Is it worth me submitting my desire for a maximum hold time as an RFE?
John A. Murdie
More information about the cups
mailing list