Changeset 645 for tea4cups/trunk/tea4cups.conf
- Timestamp:
- 06/12/05 23:07:29 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups.conf
r644 r645 9 9 # the Free Software Foundation; either version 2 of the License, or 10 10 # (at your option) any later version. 11 # 11 # 12 12 # This program is distributed in the hope that it will be useful, 13 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 15 # GNU General Public License for more details. 16 # 16 # 17 17 # You should have received a copy of the GNU General Public License 18 18 # along with this program; if not, write to the Free Software 19 19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 # 20 # 21 21 # 22 22 … … 50 50 # parallel. 51 51 # 52 # NB : in any case, hooks' names are sorted alphabetically and 52 # NB : in any case, hooks' names are sorted alphabetically and 53 53 # are launched in this sort order (obviously when launched in parallel 54 54 # this is unnoticeable). 55 # 55 # 56 56 # Can be set either in the [global] section or any print queue section. 57 57 # The value defined in a print queue section takes precedence over the … … 59 59 # serialize : yes 60 60 61 # When executing the contents of a 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 : … … 82 82 # job's datas. Don't rely on TEAINPUTFILE, use TEADATAFILE instead 83 83 # since the first one may be empty depending on your printer driver. 84 84 85 85 # Some hooks : prehooks and posthooks 86 86 # 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 89 89 # posthooks are guaranteed to be launched AFTER the job's 90 90 # datas have been sent to the printer. … … 99 99 # in the CUPS backend which handles the transmission of the job 100 100 # to the printer. 101 # 101 # 102 102 # prehook_0 : echo "Your print job has been accepted" | smbclient -M $TEAUSERNAME 103 103 # posthook_0 : echo "Your print job has been printed with status $TEASTATUS" | smbclient -M $TEAUSERNAME 104 104 # 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) 106 106 # 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 108 108 # remaining prehooks are still executed. 109 # 109 # 110 110 #prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME 111 111 #posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn … … 123 123 # An empty value deletes a value defined in the [global] section 124 124 # so this particular hook doesn't get executed on this printer. 125 #prehook_pdf : 125 #prehook_pdf : 126 126 127 127 # A reflector which produces 4 copies each time : 128 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE 128 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE 129 129 130 # A simple accounting mechanism 130 # A simple accounting mechanism 131 131 #prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >/var/log/printaccounting.log 132 132 133 133 # Some additionnal hooks to forbid duplicate jobs : 134 134 # 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 136 136 # job is a duplicate (same MD5 sum already found in history) 137 137 #prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums