- Timestamp:
- 03/13/05 14:43:00 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups.conf
r578 r580 26 26 debug : yes 27 27 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 ! 29 29 # 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. 30 33 directory : /var/spool/cups/ 31 34 32 35 # 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. 34 41 # BEWARE : this may use huge amounts of disk space ! 35 keepfiles : yes42 # keepfiles : yes 36 43 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 38 53 # When executing the contents of a tee directive, tea4cups makes 39 54 # the following environment variables available to your own commands : 40 55 # 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. 52 68 # 53 69 # Your own commands will mostly be interested in TEADATAFILE which is … … 58 74 # The tee names are completely free BUT THEY MUST BEGIN WITH 'tee_' 59 75 # 60 # tee_0 : cat $TEADATAFILE >/tmp/blah61 #tee_ 1 : blah62 #tee_ 2 : blah76 # These are just some stupid examples. 77 #tee_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 78 #tee_pdf : cat $TEADATAFILE | su -c "lp -dPDFGen" $TEAUSERNAME 63 79 64 80 # Sample section for print queue HP2100 65 81 # Uncomment and adapt to your needs. 66 82 # 67 [HP2100] 68 #tee_2 : zut # overwrites the [global] value of tee_2 69 #tee_4 : gniak 83 #[HP2100] 70 84 # 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 71 93 #