Show
Ignore:
Timestamp:
02/19/05 19:16:06 (19 years ago)
Author:
jalet
Message:

Optimize print job parsing by avoiding to pass the job's datas through
PyKota's internal parser if the special construct "software()" is used
with no argument in the 'accounter' directive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r2066 r2074  
    364364#                 this way : 
    365365# 
     366#                   accounter: software() 
     367# 
     368#                 which uses PyKota's internal parser to compute 
     369#                 the size of the job. 
     370# 
     371#                 You could obtain exactly the same result with : 
     372# 
    366373#                   accounter: software(/usr/bin/pkpgcounter) 
     374# 
     375#                 But in this case the job would be passed through 
     376#                 PyKota's internal parser a second time. 
    367377# 
    368378#                 pkpgcounter is a command line tool which is 
     
    372382#                 in the future, as time permits. 
    373383# 
    374 #                 while pkpgcounter is the recommended value 
    375 #                 you can use whatever command you want provided 
    376 #                 that your command accepts the job's data on its 
    377 #                 standard input and prints the job's size in pages 
    378 #                 as a single integer on its standard output. 
     384#                 while pkpgcounter is the recommended value if you want 
     385#                 to use an external command here, you can use whatever  
     386#                 command you want provided your command accepts the job's 
     387#                 data on its standard input and prints the job's size in  
     388#                 pages as a single integer on its standard output. 
    379389#  
    380390# This value can be set either globally or on a per printer basis 
     
    384394# accounter: hardware(snmp) 
    385395# accounter: hardware(pjl) 
    386 accounter: software(/usr/bin/pkpgcounter) 
     396# accounter: software(/usr/bin/pkpgcounter) 
     397# 
     398# The following is only allowed since PyKota 1.21  
     399accounter: software() 
    387400 
    388401# What should we do if the accounter's subprocess doesn't return