Changeset 620

Show
Ignore:
Timestamp:
03/31/05 00:53:55 (18 years ago)
Author:
jerome
Message:

A complex example showing how to filter out duplicate print jobs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r615 r620  
    136136 
    137137# A simple accounting mechanism  
    138 #tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
     138#tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
    139139 
    140 # An additionnal posthook : 
    141 #posthook_dummy : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums 
     140# Some additionnal hooks to forbid duplicate jobs : 
     141# The prehook will use the history file to filter out duplicate jobs 
     142# checkdupes is an hypothetical command which exits -1 if the current print  
     143# job is a duplicate (same MD5 sum already found in history) 
     144#prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums 
     145#posthook_to_filter_duplicates : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums