Show
Ignore:
Timestamp:
03/19/05 11:36:04 (19 years ago)
Author:
jerome
Message:

More work on prehook and posthook. Needs testing.
Now sorts tees before launching them, may be useful.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r597 r598  
    3131# The value defined in a print queue section takes precedence over the 
    3232# value defined in the [global] section. 
     33# directory : /var/spool/tea4cups/ 
    3334directory : /var/spool/cups/ 
    3435 
     
    4445# Should we serialize the launch of all tees : launch one tee after 
    4546# the other to save some system resources. 
    46 # Defaults to No if unset, meaning that all tees are launched in 
     47# Defaults to No if unset, meaning that all tees (or hooks) are launched in 
    4748# parallel. 
     49# 
     50# NB : in any case, hooks or tees names are sorted alphabetically and  
     51# are launched in this sort order (obviously when launched in parallel 
     52# this is unnoticeable). 
     53#  
    4854# Can be set either in the [global] section or any print queue section. 
    4955# The value defined in a print queue section takes precedence over the 
     
    100106#  
    101107# prehook_0 : echo "Your print job has been accepted" | smbclient -M $TEAUSERNAME 
    102 # posthook_0 : echo "Your print job has been printed" | smbclient -M $TEAUSERNAME 
     108# posthook_0 : echo "Your print job has been printed with status $TEASTATUS" | smbclient -M $TEAUSERNAME 
    103109 
    104110 
     
    111117# value takes precedence 
    112118#tee_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
     119 
    113120# An empty value deletes a value defined in the [global] section 
    114121# so this particular tee doesn't get executed. 
    115122#tee_pdf :  
     123 
    116124# A reflector which produces 4 copies each time : 
    117125#tee_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
     126 
    118127# A simple accounting mechanism  
    119128#tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
     129 
     130# An additionnal posthook : 
     131#posthook_dummy : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums