Changeset 644 for tea4cups/trunk/tea4cups.conf
- Timestamp:
- 06/12/05 22:58:48 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups.conf
r620 r644 4 4 # 5 5 # (c) 2005 Jerome Alet <alet@librelogiciel.com> 6 # (c) 2005 Peter Stuge <stuge-tea4cups@cdy.org> 6 7 # This program is free software; you can redistribute it and/or modify 7 8 # it under the terms of the GNU General Public License as published by … … 16 17 # You should have received a copy of the GNU General Public License 17 18 # along with this program; if not, write to the Free Software 18 # Foundation, Inc., 5 9 Temple Place, Suite 330, Boston, MA 02111-1307, USA.19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 20 # 20 21 # … … 35 36 directory : /var/spool/cups/ 36 37 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 ? 38 39 # Defaults to No if unset, meaning that files are automatically deleted 39 # once all tees have ended.40 # once all hooks have ended. 40 41 # Can be set either in the [global] section or any print queue section. 41 42 # The value defined in a print queue section takes precedence over the … … 44 45 # keepfiles : yes 45 46 46 # Should we serialize the launch of all tees : launch one tee after47 # Should we serialize the launch of all hooks : launch one after 47 48 # the other to save some system resources. 48 # Defaults to No if unset, meaning that all tees (or hooks)are launched in49 # Defaults to No if unset, meaning that all hooks are launched in 49 50 # parallel. 50 51 # 51 # NB : in any case, hooks or teesnames are sorted alphabetically and52 # NB : in any case, hooks' names are sorted alphabetically and 52 53 # are launched in this sort order (obviously when launched in parallel 53 54 # this is unnoticeable). … … 56 57 # The value defined in a print queue section takes precedence over the 57 58 # value defined in the [global] section. 58 # This value also applies to prehooks and posthooks (see below)59 59 # serialize : yes 60 60 61 # When executing the contents of a tee,prehook or posthook directive,61 # When executing the contents of a prehook or posthook directive, 62 62 # tea4cups makes the following environment variables available to your 63 63 # own commands : … … 83 83 # since the first one may be empty depending on your printer driver. 84 84 85 # Now defines some default tees which will always be launched86 # at the same time that the job's datas are being sent to the87 # 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.prn92 #tee_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME93 94 85 # Some hooks : prehooks and posthooks 95 86 # 96 # Contrary to tees, prehooks are guaranteed to be launched87 # Prehooks are guaranteed to be launched 97 88 # BEFORE the job's datas are sent to the printer, and 98 89 # posthooks are guaranteed to be launched AFTER the job's … … 114 105 # NB : as a special feature, any prehook which exits with a -1 status (255) 115 106 # causes the job to NOT be sent to the real backend, effectively cancelling it. 116 # None of the tees andposthooks gets executed in this case, but all107 # None of the posthooks gets executed in this case, but all 117 108 # remaining prehooks are still executed. 118 109 # 110 #prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 111 #posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 119 112 120 113 … … 124 117 #[HP2100] 125 118 # 126 # By using a same teename as in the [global] section, the new119 # By using a same hook name as in the [global] section, the new 127 120 # value takes precedence 128 # tee_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn121 #posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 129 122 130 123 # 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 : 133 126 134 127 # A reflector which produces 4 copies each time : 135 # tee_4copies : lp -dotherprinter -n4 $CUPSDATAFILE128 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE 136 129 137 130 # A simple accounting mechanism 138 # tee_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log131 #prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 139 132 140 133 # Some additionnal hooks to forbid duplicate jobs :