Hi all! I have a samba print server which stores information about each job. To accomplish this, I have set 'printing = sysv' so I can use print command. Print command passes to a script some info including '%c' (page_count). The problem is that if someone sends more than one copy of the document, %c doesn't tell me so. It means that %c tells exactly the number of pages sent to the printer without doing the necessary math. How can I know the real amount of pages sent to the printer? Thanks in advance! -- Fabiano Caixeta Duarte Especialista em Redes de Computadores Linux User #195299 Ribeir?o Preto - SP (16) 8167-2167
Fabiano Caixeta Duarte wrote:> Hi all! > > I have a samba print server which stores information about each job. To > accomplish this, I have set 'printing = sysv' so I can use print command. > > Print command passes to a script some info including '%c' (page_count). > The problem is that if someone sends more than one copy of the document, > %c doesn't tell me so. > > It means that %c tells exactly the number of pages sent to the printer > without doing the necessary math. > > How can I know the real amount of pages sent to the printer? > > Thanks in advance! > >What do you use for your print spooler? If you are using cups there is a backend/filter/thing (i forget what it is called) that will do page counting. The advantage of it is that it will count actual pages printed which means it will deal not only with your multiple copies issue but also if the job is deleted before reaching the printer or if the printer is offline. *Michael Heydon - IT Administrator * michaelh@jaswin.com.au <mailto:michaelh@jaswin.com.au>
On Wednesday 02 January 2008, Fabiano Caixeta Duarte wrote:> How can I know the real amount of pages sent to the printer?I use CUPS + Pykota for handling page accounting. It can enforce quotas as well but I don't use it for that. Also works properly no matter how the job was submitted (samba, IPP). -- Chris