Show
Ignore:
Timestamp:
06/12/05 22:58:48 (19 years ago)
Author:
jerome
Message:

Removed all references to 'tees' from the sample configuration file
and documentation.
Updated the license because of the Free Software Foundation's new
snail mail address.
Reworded Peter's contributions in the CREDITS file.
Added missing copyright messages.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r620 r644  
    44# 
    55# (c) 2005 Jerome Alet <alet@librelogiciel.com> 
     6# (c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 
    67# This program is free software; you can redistribute it and/or modify 
    78# it under the terms of the GNU General Public License as published by 
     
    1617# You should have received a copy of the GNU General Public License 
    1718# along with this program; if not, write to the Free Software 
    18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 
     19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    1920#  
    2021# 
     
    3536directory : /var/spool/cups/ 
    3637 
    37 # Should Tea4CUPS keep the files it creates once all tees have ended ? 
     38# Should Tea4CUPS keep the files it creates once all hooks have ended ? 
    3839# Defaults to No if unset, meaning that files are automatically deleted 
    39 # once all tees have ended. 
     40# once all hooks have ended. 
    4041# Can be set either in the [global] section or any print queue section. 
    4142# The value defined in a print queue section takes precedence over the 
     
    4445# keepfiles : yes 
    4546 
    46 # Should we serialize the launch of all tees : launch one tee after 
     47# Should we serialize the launch of all hooks : launch one after 
    4748# the other to save some system resources. 
    48 # Defaults to No if unset, meaning that all tees (or hooks) are launched in 
     49# Defaults to No if unset, meaning that all hooks are launched in 
    4950# parallel. 
    5051# 
    51 # NB : in any case, hooks or tees names are sorted alphabetically and  
     52# NB : in any case, hooks' names are sorted alphabetically and  
    5253# are launched in this sort order (obviously when launched in parallel 
    5354# this is unnoticeable). 
     
    5657# The value defined in a print queue section takes precedence over the 
    5758# value defined in the [global] section. 
    58 # This value also applies to prehooks and posthooks (see below) 
    5959# serialize : yes 
    6060 
    61 # When executing the contents of a tee, prehook or posthook directive,  
     61# When executing the contents of a prehook or posthook directive,  
    6262# tea4cups makes the following environment variables available to your 
    6363# own commands : 
     
    8383# since the first one may be empty depending on your printer driver. 
    8484         
    85 # Now defines some default tees which will always be launched 
    86 # at the same time that the job's datas are being sent to the  
    87 # printer. 
    88 # The tee names are completely free BUT THEY MUST BEGIN WITH 'tee_' 
    89 # 
    90 # These are just some stupid examples. 
    91 #tee_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
    92 #tee_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
    93  
    9485# Some hooks : prehooks and posthooks 
    9586# 
    96 # Contrary to tees, prehooks are guaranteed to be launched  
     87# Prehooks are guaranteed to be launched  
    9788# BEFORE the job's datas are sent to the printer, and  
    9889# posthooks are guaranteed to be launched AFTER the job's 
     
    114105# NB : as a special feature, any prehook which exits with a -1 status (255)  
    115106# causes the job to NOT be sent to the real backend, effectively cancelling it. 
    116 # None of the tees and posthooks gets executed in this case, but all  
     107# None of the posthooks gets executed in this case, but all  
    117108# remaining prehooks are still executed. 
    118109#  
     110#prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
     111#posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
    119112 
    120113 
     
    124117#[HP2100] 
    125118# 
    126 # By using a same tee name as in the [global] section, the new 
     119# By using a same hook name as in the [global] section, the new 
    127120# value takes precedence 
    128 #tee_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
     121#posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
    129122 
    130123# An empty value deletes a value defined in the [global] section 
    131 # so this particular tee doesn't get executed. 
    132 #tee_pdf :  
     124# so this particular hook doesn't get executed on this printer. 
     125#prehook_pdf :  
    133126 
    134127# A reflector which produces 4 copies each time : 
    135 #tee_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
     128#posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
    136129 
    137130# A simple accounting mechanism  
    138 #tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
     131#prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
    139132 
    140133# Some additionnal hooks to forbid duplicate jobs :