I would like to control the number of pages each user send to print, in
order to avoid abuses of printing...
I'm using Linux (wich uses a lpr style printing)
Jobs to the remote printer are sent via nfs from windows to the Linux nfs
server.
The Remote printer is a HP laserJet 4M plus, conected directly to the net.
This printer only accept request from the linux machine.
The problems are:
-Linux doesn't support filters for remote printers, i have find a
solution in the pcnfsd.conf, there you can specify a command to preprocess
the file that it is send to the printer.
I have planned to incorporate in this command a shell script that ask to the
printer the number of pages (via snmp the 4M plus support it), and the when
the job is finished see the page counter to calculate the printed pages.
- How can you guess that a job is finished?
- How can you are sure that you are not considering the start of one
job with the end of another one? (that is calculating bad the pages for one
user)
I have heard about pac, but it is for use with TEX, dvi, ascii,
ps...files but not with printer formated files of windows.(at least i don't
know any filter for it ;-) ).
If anybody has made something similar to this, I would appreciate any hints,
or configuration script.
Please answer by mail, if anybody is interested in this subject, If we all
find a solution i will post it for everybody
Thank you for your time!
--
----------------------------------------------------------
Jorge Rodriguez Bringas \|/ ___ \|/
Fac. Ciencias ,Valladolid (SPAIN) /__( \___/ )__\
----------------------------------------------------------