- Timestamp:
- 06/18/05 00:03:56 (19 years ago)
- Location:
- tea4cups/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/NEWS
r645 r648 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 … … 22 23 Tea4CUPS News : 23 24 25 * 3.00 : 26 27 - Tees don't exist anymore. Only prehooks and posthooks remain. 28 29 - Prehooks can now send datas to Posthooks through pipes. 30 31 - Major rewrite of the subprocess management code, thanks to Peter Stuge. 32 24 33 * 2.12alpha : 25 34 -
tea4cups/trunk/tea4cups
r646 r648 39 39 from struct import unpack 40 40 41 version = " 2.12alpha3_unofficial"41 version = "3.00_unofficial" 42 42 43 43 class TeeError(Exception): … … 777 777 if pid == 0 : 778 778 if self.InputFile is None : 779 f =open(self.dataFile, "rb")779 f = open(self.dataFile, "rb") 780 780 os.dup2(f.fileno(), 0) 781 781 f.close() … … 791 791 status = os.waitpid(pid, 0)[1] 792 792 except OSError, (err, msg) : 793 if err == 4and self.gotSigTerm :793 if (err == 4) and self.gotSigTerm : 794 794 os.kill(pid, signal.SIGTERM) 795 795 killed = 1 -
tea4cups/trunk/tea4cups.conf
r645 r648 83 83 # since the first one may be empty depending on your printer driver. 84 84 85 # Some hooks :prehooks and posthooks85 # Some prehooks and posthooks 86 86 # 87 87 # Prehooks are guaranteed to be launched … … 95 95 # An additionnal environment variable is made available to posthooks, 96 96 # named TEASTATUS which contains the exitcode of the real CUPS backend. 97 # The normal value is 0, meaning that the real CUPS backend exited97 # If defined, the normal value is 0, meaning that the real CUPS backend exited 98 98 # successfully. Any other value indicates that a problem occured 99 99 # in the CUPS backend which handles the transmission of the job … … 134 134 # The prehook will use the history file to filter out duplicate jobs 135 135 # checkdupes is an hypothetical command which exits -1 if the current print 136 # job is a duplicate (same MD5 sum already found in history) 136 # job is a duplicate (same MD5 sum already found in history). 137 # 138 # NB : Beware of some software which embed the job printing time into the 139 # PostScript job : two identical jobs may have different MD5 checksums 140 # if they differ only by the value of the '%%CreationDate:' PostScript 141 # comment ! 137 142 #prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums 138 143 #posthook_to_filter_duplicates : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums 144 145 # A particular prehook can send datas to the posthook 146 # of the same name automatically through pipes : 147 # The file /tmp/result1 will contain the output of prehook_dialog1 148 # prehook_dialog1 : echo "This is pipe #1" 149 # posthook_dialog1 : cat >/tmp/result1 150 # The file /tmp/result2 will contain the output of prehook_dialog2 151 # prehook_dialog2 : echo "This is pipe #2" 152 # posthook_dialog2 : cat >/tmp/result2