- Timestamp:
- 06/12/05 22:58:48 (19 years ago)
- Location:
- tea4cups/trunk
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/COPYING
r595 r644 3 3 4 4 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 5 9 Temple Place, Suite 3306 Boston, MA 0211 1-1307, USA.5 51 Franklin Street, Fifth Floor 6 Boston, MA 02110-1301, USA. 7 7 Everyone is permitted to copy and distribute verbatim copies 8 8 of this license document, but changing it is not allowed. … … 307 307 You should have received a copy of the GNU General Public License 308 308 along with this program; if not, write to the Free Software 309 Foundation, Inc., 5 9 Temple Place, Suite 330, Boston, MA 02111-1307, USA.309 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 310 310 311 311 Also add information on how to contact you by electronic and paper mail. -
tea4cups/trunk/CREDITS
r637 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 ============================================================ … … 33 34 The following people contributed to the Tea4CUPS project : 34 35 35 - Peter Stuge : allowed pre and post hooks to communicate through 36 a pipe. 36 - Peter Stuge : rewrote most of the subprocess management stuff. 37 37 38 38 ============================================================== -
tea4cups/trunk/NEWS
r631 r644 16 16 You should have received a copy of the GNU General Public License 17 17 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.18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 19 20 20 ============================================================================= -
tea4cups/trunk/README
r642 r644 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 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. 20 20 21 21 ============================================================================= 22 22 23 Tea4CUPS is the equivalent of the *nix command 'tee', but as a CUPS 24 backend. 23 Tea4CUPS resembles the *nix command 'tee', but is a CUPS backend. 25 24 26 25 Tea4CUPS behaves just like any other CUPS backend, but allows you to … … 35 34 message, all of this by printing it a single time. 36 35 37 Tea4CUPS provides three ways to launch commands : 36 Tea4CUPS allows this by permitting you to easily plug your own 37 commands into the very last stage of CUPS' filtering chain. 38 39 Tea4CUPS provides two ways to launch commands : 38 40 39 41 - prehooks : these are guaranteed to be launched before the … … 42 44 print job. 43 45 44 - tees : these are launched at the same time the job is being45 sent to the real printer, unless the job was46 previously cancelled by a prehook.47 48 46 - posthooks : these are guaranteed to be launched after the 49 47 print job has been sent to the real printer, … … 97 95 $ cp tea4cups /usr/lib/cups/backend 98 96 99 2 - Restart CUPS in order for this new backend to be detected. 97 2 - Restart CUPS in order for this new backend to be detected. 98 NB : For this to work you need CUPS 1.1.15 or higher. 99 You can use Tea4CUPS with older versions if you want, but 100 without autodetection. 100 101 101 102 3 - Either from CUPS' web interface, add new printers with … … 104 105 Or by directly modifying CUPS' printers.conf file, prepend 105 106 each DeviceURI value with 'tea4cups://', and restart CUPS. 107 (Use this last method if autodetection doesn't work because 108 the version of CUPS you use is too old) 106 109 107 110 4 - Copy tea4cups.conf into CUPS' configuration directory (where -
tea4cups/trunk/tea4cups
r643 r644 18 18 # You should have received a copy of the GNU General Public License 19 19 # along with this program; if not, write to the Free Software 20 # Foundation, Inc., 5 9 Temple Place, Suite 330, Boston, MA 02111-1307, USA.20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 21 # 22 22 # $Id$ -
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 :