<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 9, 2010, at 5:13 AM, John A. Sullivan III wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">...</font></div></blockquote><blockquote type="cite"><div>minutes and a page limit of 5 pages for the big plotters and 20 or 30 pages for the smaller ones.  Is this a reasonable approach?<br></div></blockquote><div><br></div>Possibly; the issue you'll run into with the standard CUPS quota support is that we don't prevent a 300 page job from printing, but we stop it after we see the limit reached so you'd get at least 5 pages out before the job was canceled. Depending on the amount of buffered data that could mean that more pages actually get printed...</div><div><br></div><div>There are some third-party solutions on the <a href="http://cups.org">cups.org</a> links page that are worth looking at...</div><div><br><blockquote type="cite"><div>We hit two problems.  We first tried to set the quota via lpadmin:<br>lpadmin -p jasiii-LocalPrinters -o job-quota-period=300 -o job-page-limit=5<br><br>This returned no error but also had no effect - no change to printers.conf.</div></blockquote><div><br></div>Current cupsd will delay writes to printers.conf for a configurable amount of time (default is 30 seconds - see the DirtyCleanInterval directive) to limit the number of times we hit the disk.</div><div><br><blockquote type="cite"><div>However, even after restarting cupsd, the limit appears to have no effect.  I merrily printed a 16 page job.  I did check the page log and it showed 16 pages (it is not a raw print job).  I searched this forum for information and saw an old post that said CUPS allows one job to go over the quota.  That right there seems to foil our goal of preventing one accidental job.  Is that true?<br></div></blockquote><div><br></div>Pretty much - see above...</div><div><br><blockquote type="cite"><div>In any event, I then sent three 16 page jobs to the printer in quick succession.  They all printed.  What am I doing wrong? Thanks - John<br><br>PS - for kicks I tried setting the KLimit to 1KB.  It still took all three 16 page jobs.  Here are some pertinent configuration and log details:<br></div></blockquote></div><div><br></div>Hmm, can you file a bug - clearly we don't want to accept jobs when we are over the limit, and the k limit should always work...<div><br><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; "><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-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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>________________________________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair</div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>