From: Iordan I. <io...@cd...> - 2011-03-21 15:20:18
|
Hi Craig, On 03/19/11 07:15, Craig Small wrote: > Would two queues do what you are after? one public queue and then push > the job to the second queue which cannot have jobs removed? I had no idea that this could even be done. I'll look into it today. Over the weekend I was thinking of doing something rougher than that. The accounting script is called twice by ifhp - once in the beginning and once at the end (filestart and fileend). At filestart, for job M, I was thinking of dropping a file in (for example) "/var/run/printaccounting/printerN" with a username and pagecountM, and at fileend, removing that file. If the next printjob in printerN's spool "finds" a file in the directory, it can "correct" the quota of username by (pagecountM+1 - pagecountM). That's a bit of a hack though. So I take it there is no neat way to tell LPD to disallow removal of active jobs? In most academic environments with enterprise printers, the removal of an "active" job does nothing because the job has been spooled anyway! Cheers, Iordan |