Re: [Samba] Samba printing and page counting

2004-03-05 Thread Collen Blijenberg MLHJ
Try the CUPS printer drivers for windows.. (version 5 ??)
they support page counting, coz it convert your printing page
to a pdf format.. and then you can see the number of pages
at one of the last lines..

easy to make a script who's filtering out the page numbers
and prosses it to the account..
l8r
-
Collen Blijenberg (MLHJ)

Thursday, March 4, 2004, 10:31:46 PM, you wrote:

ML Hi, I'm running Samba printing services to share a printer on
ML my Linux box with a network of windows machines. Everything works
ML great. The only problem I am having is that I cannot count the
ML number of pages printed by each user. 

ML My printers section looks like this:
ML [printers]
MLcomment = All Printers
MLbrowseable = no
MLguest ok = no
MLpath = /var/spool/samba
MLprintable = yes
MLpublic = no
MLcreate mask = 0700
MLprint command = lpr -P %p -o raw %s -r -J %m.%J
MLlpq command = lpstat -o %p
MLlprm command = cancel %p-%j

ML If I had a script or escape sequence that would specify the
ML number of pages of the print document I would have no problem
ML writing a script to keep track of everything else. The easiest
ML solution I see to my problem is if samba has a nice escape
ML sequence, like %P or something, or if there was a little script I
ML could pass the spool document to and it'd tell me. Since I'm
ML printing raw, and the windows drivers are pcl, I doubt there's any
ML script that would work.

ML Any help is greatly appreciated.

ML Matt



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Samba printing and page counting

2004-03-04 Thread Matthew Lowe
Hi, I'm running Samba printing services to share a printer on my Linux box with a 
network of windows machines. Everything works great. The only problem I am having is 
that I cannot count the number of pages printed by each user. 

My printers section looks like this:
[printers]
   comment = All Printers
   browseable = no
   guest ok = no
   path = /var/spool/samba
   printable = yes
   public = no
   create mask = 0700
   print command = lpr -P %p -o raw %s -r -J %m.%J
   lpq command = lpstat -o %p
   lprm command = cancel %p-%j

If I had a script or escape sequence that would specify the number of pages of the 
print document I would have no problem writing a script to keep track of everything 
else. The easiest solution I see to my problem is if samba has a nice escape sequence, 
like %P or something, or if there was a little script I could pass the spool document 
to and it'd tell me. Since I'm printing raw, and the windows drivers are pcl, I doubt 
there's any script that would work.

Any help is greatly appreciated.

Matt

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba