- Timestamp:
- 06/29/06 00:09:25 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups.conf
r675 r678 173 173 # remaining prehooks are still executed. 174 174 # 175 #prehook_pdf : cat $TEADATAFILE | su -c "lp -dPDFGenerator" $TEAUSERNAME176 175 #posthook_0 : cat $TEADATAFILE >/tmp/$TEAJOBID.prn 176 177 178 179 # Another example : a PDF generator which creates PDF documents 180 # in the user's home directory under the names JOB-iiii.pdf 181 # where iiii is the job id : 182 # 183 # Beware : using ~$TEAUSERNAME here doesn't work because the ~ is not expanded. 184 # NB : for this to work you might have to print with 'lp -o raw' 185 # 186 # prehook_rawpdf : /bin/cat $TEADATAFILE | su $TEAUSERNAME -c "ps2pdf - `/usr/bin/getent passwd $TEAUSERNAME | /usr/bin/cut -f 6,6 -d :`/JOB-$TEAJOBID.pdf" 177 187 178 188 … … 186 196 # value takes precedence 187 197 # 188 #posthook_0 : cat $TEADATAFILE > ~$TEAUSERNAME/savejobs/$TEAJOBID.prn198 #posthook_0 : cat $TEADATAFILE >/tmp/$TEAUSERNAME-$TEAJOBID.prn 189 199 190 200 … … 193 203 # so this particular hook doesn't get executed on this printer. 194 204 # 195 #prehook_ pdf :205 #prehook_rawpdf : 196 206 197 207