Nicolas Costes wrote: > Le Lundi 11 Septembre 2006 03:19, Donny Christiaan a écrit : > >> I've upgrade my pkpgcounter to v1.85 (and restart my CUPS services) but >> the problem still there :) the counter for my Samsung ML-1710 still >> wrong ... >> >> "Sep 11 08:20:48 ltsp jasmine[10308]: User 'hrd0aris' printed 1242 pages >> on printer 'HRDPrinter'" > > If this can help Jerome : > - JASmine-Backend extracts the number of copies from the command-line > - It then launches pkpgcounter to get the number of pages for a single copy > of the document (I need to work on this, i'm not sure this is always > true...) > - It then records $copies and $pages in the database > - Finally, JASmine-Web displays $total=$pages*$copies > > What would be great, Donny : "tail -f /var/log/syslog", then print the > problematic document, and watch for JASmine-Backend's debug messages; you > should see something like : > > Sep 10 23:00:35 jasmine jasmine[25750]: Arguments: 16|nayco|Current style > in > web design|11|_kde-filters media=A4,Normal,Upper > job-uuid=urn:uuid:31b72b90-4242-3123-690e-a9cd9db9e5d9|/var/spool/cups/d00016-001 > [...] > Sep 10 23:00:36 jasmine jasmine[25750]: Document: /var/spool/cups/d00016-001 > Sep 10 23:00:36 jasmine jasmine[25750]: Analyzer returned: 0 > Sep 10 23:00:36 jasmine jasmine[25750]: Analyzing successful ! > Sep 10 23:00:36 jasmine jasmine[25750]: Number of pages: 4 > > What is the "number of pages" you get ? Then look between the document title > and the print options, you should see the number of copies (here, 11). How > much ? > > TIA :-)
Dear Nicolas, I've activate the Debug but my system don't have /var/log/syslog it only have "/var/log/message". How to activate /var/log/syslog? Here is the tail -f /var/log/message contain jasmine log. Sep 11 09:44:32 ltsp jasmine[18899]: Warning: Debug mode is activated, you should turn it off when going to production ! To do so, set $debug to 0 in the /usr/lib/cups/backend/jasmine perl script. Sep 11 09:44:34 ltsp jasmine[18899]: User 'edp0donny' printed 147 pages on printer 'FOPrinter' Here is the tail -f /var/log/cups/page_log: FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost FOPrinter edp0donny 8791 [11/Sep/2006:09:44:33 +0700] 1 1 - localhost TIA -- Best Regards, Donny Christiaan. [EMAIL PROTECTED] -- Put JASmine in your Cups ! To unsubscribe : mailto:[EMAIL PROTECTED] List archives : http://dir.gmane.org/gmane.comp.printing.jasmine.user http://www.mail-archive.com/jasmine%40ml.free.fr/ Web site : http://jasmine.berlios.de/

