Show
Ignore:
Timestamp:
06/12/05 23:07:29 (19 years ago)
Author:
jerome
Message:

Deleted trailing spaces as suggested by Peter

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r644 r645  
    99# the Free Software Foundation; either version 2 of the License, or 
    1010# (at your option) any later version. 
    11 #  
     11# 
    1212# This program is distributed in the hope that it will be useful, 
    1313# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1414# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1515# GNU General Public License for more details. 
    16 #  
     16# 
    1717# You should have received a copy of the GNU General Public License 
    1818# along with this program; if not, write to the Free Software 
    1919# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
    20 #  
     20# 
    2121# 
    2222 
     
    5050# parallel. 
    5151# 
    52 # NB : in any case, hooks' names are sorted alphabetically and  
     52# NB : in any case, hooks' names are sorted alphabetically and 
    5353# are launched in this sort order (obviously when launched in parallel 
    5454# this is unnoticeable). 
    55 #  
     55# 
    5656# Can be set either in the [global] section or any print queue section. 
    5757# The value defined in a print queue section takes precedence over the 
     
    5959# serialize : yes 
    6060 
    61 # When executing the contents of a 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 : 
     
    8282# job's datas. Don't rely on TEAINPUTFILE, use TEADATAFILE instead 
    8383# since the first one may be empty depending on your printer driver. 
    84          
     84 
    8585# Some hooks : prehooks and posthooks 
    8686# 
    87 # Prehooks are guaranteed to be launched  
    88 # BEFORE the job's datas are sent to the printer, and  
     87# Prehooks are guaranteed to be launched 
     88# BEFORE the job's datas are sent to the printer, and 
    8989# posthooks are guaranteed to be launched AFTER the job's 
    9090# datas have been sent to the printer. 
     
    9999# in the CUPS backend which handles the transmission of the job 
    100100# to the printer. 
    101 #  
     101# 
    102102# prehook_0 : echo "Your print job has been accepted" | smbclient -M $TEAUSERNAME 
    103103# posthook_0 : echo "Your print job has been printed with status $TEASTATUS" | smbclient -M $TEAUSERNAME 
    104104# 
    105 # NB : as a special feature, any prehook which exits with a -1 status (255)  
     105# NB : as a special feature, any prehook which exits with a -1 status (255) 
    106106# causes the job to NOT be sent to the real backend, effectively cancelling it. 
    107 # None of the posthooks gets executed in this case, but all  
     107# None of the posthooks gets executed in this case, but all 
    108108# remaining prehooks are still executed. 
    109 #  
     109# 
    110110#prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 
    111111#posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
     
    123123# An empty value deletes a value defined in the [global] section 
    124124# so this particular hook doesn't get executed on this printer. 
    125 #prehook_pdf :  
     125#prehook_pdf : 
    126126 
    127127# A reflector which produces 4 copies each time : 
    128 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
     128#posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE 
    129129 
    130 # A simple accounting mechanism  
     130# A simple accounting mechanism 
    131131#prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 
    132132 
    133133# Some additionnal hooks to forbid duplicate jobs : 
    134134# The prehook will use the history file to filter out duplicate jobs 
    135 # checkdupes is an hypothetical command which exits -1 if the current print  
     135# checkdupes is an hypothetical command which exits -1 if the current print 
    136136# job is a duplicate (same MD5 sum already found in history) 
    137137#prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums