Chuck> This is a question for those cups guru's out there. I'm trying Chuck> to write a custom perl script for cups that does accounting. I Chuck> have a database with users and quotas and I'm writing a filter Chuck> for cups that checks to make sure the user has enough left on Chuck> their balance before printing. I was curious how I would go Chuck> about sticking this into the cups filtering chain. I've been Chuck> reading up on the cups docs but I'm still kinda confused on Chuck> where to put it. Any help would be much appreciated. How are you going to count pages before you send them to the printer? That was always the problem we had, esp when someone messed up and sent garbage to the laser printer at $0.10/page way back in the late 80s, and then came up to find a 1" thick stack waiting for them... with just one letter per page Or are you going to pre-render, count the pages, then get the page counter on the printer, print, and read the page counter to see what actually got through? I'd also google, since I can't imagine that you're the only one who's wanted something like this before... John