Changeset 580 for tea4cups

Show
Ignore:
Timestamp:
03/13/05 14:43:00 (20 years ago)
Author:
jerome
Message:

Added some examples

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups.conf

    r578 r580  
    2626debug : yes 
    2727 
    28 # The directory in which we will create our files : it must already exist ! 
     28# In which directory will we create our files ? It must already exist ! 
    2929# This directive MUST be present since there's no sane default value. 
     30# Can be set either in the [global] section or any print queue section. 
     31# The value defined in a print queue section takes precedence over the 
     32# value defined in the [global] section. 
    3033directory : /var/spool/cups/ 
    3134 
    3235# Should Tea4CUPS keep the files it creates once all tees have ended ? 
    33 # Defaults to No if unset. 
     36# Defaults to No if unset, meaning that files are automatically deleted 
     37# once all tees have ended. 
     38# Can be set either in the [global] section or any print queue section. 
     39# The value defined in a print queue section takes precedence over the 
     40# value defined in the [global] section. 
    3441# BEWARE : this may use huge amounts of disk space ! 
    35 keepfiles : yes 
     42# keepfiles : yes 
    3643 
    37 # 
     44# Should we serialize the launch of all tees : launch one tee after 
     45# the other to save some system resources. 
     46# Defaults to No if unset, meaning that all tees are launched in 
     47# parallel. 
     48# Can be set either in the [global] section or any print queue section. 
     49# The value defined in a print queue section takes precedence over the 
     50# value defined in the [global] section. 
     51# serialize : yes 
     52 
    3853# When executing the contents of a tee directive, tea4cups makes 
    3954# the following environment variables available to your own commands : 
    4055# 
    41 # TEAPRINTERNAME : The print queue name 
    42 # TEADIRECTORY : Tea4CUPS output directory 
    43 # TEADATAFILE : Full name of Tea4CUPS work file (in $TEADIRECTORY) 
    44 # TEAJOBSIZE : Job's size in bytes 
    45 # TEAMD5SUM : MD5 sum of the job's datas 
    46 # TEAJOBID : Job's Id 
    47 # TEAUSERNAME : Name of the user who launched the print job 
    48 # TEATITLE : Job's title 
    49 # TEACOPIES : Number of copies requested 
    50 # TEAOPTIONS : Options of the print job 
    51 # TEAINPUTFILE : Print job's data file or empty when job read from stdin 
     56# TEAPRINTERNAME : The print queue name. 
     57# TEADIRECTORY : Tea4CUPS output directory. 
     58# TEADATAFILE : Full name of Tea4CUPS work file (in $TEADIRECTORY). 
     59# TEAJOBSIZE : Job's size in bytes. 
     60# TEAMD5SUM : MD5 sum of the job's datas. 
     61# TEACLIENTHOST : Client's hostname or IP address. 
     62# TEAJOBID : Job's Id. 
     63# TEAUSERNAME : Name of the user who launched the print job. 
     64# TEATITLE : Job's title. 
     65# TEACOPIES : Number of copies requested. 
     66# TEAOPTIONS : Options of the print job. 
     67# TEAINPUTFILE : Print job's data file or empty when job read from stdin. 
    5268# 
    5369# Your own commands will mostly be interested in TEADATAFILE which is 
     
    5874# The tee names are completely free BUT THEY MUST BEGIN WITH 'tee_' 
    5975# 
    60 #tee_0 : cat $TEADATAFILE >/tmp/blah 
    61 #tee_1 : blah 
    62 #tee_2 : blah 
     76# These are just some stupid examples. 
     77#tee_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 
     78#tee_pdf : cat $TEADATAFILE | su -c "lp -dPDFGen" $TEAUSERNAME 
    6379 
    6480# Sample section for print queue HP2100 
    6581# Uncomment and adapt to your needs. 
    6682# 
    67 [HP2100] 
    68 #tee_2 : zut    # overwrites the [global] value of tee_2 
    69 #tee_4 : gniak 
     83#[HP2100] 
    7084# 
     85# By using a same tee name as in the [global] section, the new 
     86# value takes precedence 
     87#tee_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 
     88# An empty value deletes a value defined in the [global] section 
     89# so this particular tee doesn't get executed. 
     90#tee_pdf :  
     91# A reflector which produces 4 copies each time : 
     92#tee_4copies : lp -dotherprinter -n4 $CUPSDATAFILE  
    7193#