root / tea4cups / trunk / README @ 642

Revision 642, 5.2 kB (checked in by jerome, 19 years ago)

Added (c) 2005 Peter Stuge.
Tests the new tea4cups-svn@… pseudo mailing list.

  • Property svn:keywords set to Author Date Id Rev
Line 
1# $Id$
2
3Tea4CUPS : Tee for CUPS
4
5(c) 2005 Jerome Alet <alet@librelogiciel.com>
6(c) 2005 Peter Stuge <stuge-tea4cups@cdy.org>
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
20
21=============================================================================
22
23Tea4CUPS is the equivalent of the *nix command 'tee', but as a CUPS
24backend.
25
26Tea4CUPS behaves just like any other CUPS backend, but allows you to
27transparently send print jobs' datas to any number of outputs : other
28CUPS backends, files or pipes.
29
30This for example allows you to output the same print job on several
31printers at the same time, which is not possible with CUPS.
32
33Another possibility would be for example to send the same document to
34a printer, a PDF generator, a Fax, and as an attachment to an email
35message, all of this by printing it a single time.
36
37Tea4CUPS provides three ways to launch commands :
38
39        - prehooks : these are guaranteed to be launched before the
40                     print job is sent to the real printer.
41                     Any prehook which exits -1 can cancel the
42                     print job.
43                     
44        - tees : these are launched at the same time the job is being             
45                 sent to the real printer, unless the job was
46                 previously cancelled by a prehook.
47                 
48        - posthooks : these are guaranteed to be launched after the
49                      print job has been sent to the real printer,
50                      unless the job was previously cancelled by a
51                      prehook.
52                 
53To help your own commands, Tea4CUPS makes available as part of the
54environment several variables which can be used from the
55commands you use :
56
57        TEAPRINTERNAME : The print queue name.
58        TEADIRECTORY : Tea4CUPS output directory.
59        TEADATAFILE : Full name of Tea4CUPS work file (in $TEADIRECTORY).
60        TEAJOBSIZE : Job's size in bytes.
61        TEAMD5SUM : MD5 sum of the job's datas.
62        TEACLIENTHOST : Client's hostname or IP address.
63        TEAJOBID : Job's Id.
64        TEAUSERNAME : Name of the user who launched the print job.
65        TEATITLE : Job's title.
66        TEACOPIES : Number of copies requested.
67        TEAOPTIONS : Options of the print job.
68        TEAINPUTFILE : Print job's data file or empty when job read from stdin.
69        TEABILLING : Job's billing code (lp -o job-billing=SomeCode file.ps)
70        TEACONTROLFILE : Job's IPP message file (usually /var/spool/cups/c?????)
71        TEASTATUS : Original CUPS backend's exit code : ONLY AVAILABLE FROM
72                    posthooks, obviously.
73       
74In the case you want to use both Tea4CUPS and PyKota, you MUST install
75PyKota v1.22alpha2 or higher to avoid a race condition.
76
77NB : Tea4CUPS requires a version of Python >= 2.1
78
79=============================================================================
80
81Installation :
82--------------
83
84  0 - Download Tea4CUPS from :
85 
86        http://www.librelogiciel.com/software/Tea4CUPS/action_Presentation
87       
88      and extract it : 
89     
90        $ tar -zxf tea4cups-x.yy.tar.gz
91       
92        where x.yy is Tea4CUPS' version number.
93       
94  1 - Copy the 'tea4cups' command into CUPS' backend directory,
95      for example :
96     
97        $ cp tea4cups /usr/lib/cups/backend
98       
99  2 - Restart CUPS in order for this new backend to be detected.       
100 
101  3 - Either from CUPS' web interface, add new printers with
102      'Tea4CUPS managed' in front of the device's name.
103         
104      Or by directly modifying CUPS' printers.conf file, prepend   
105      each DeviceURI value with 'tea4cups://', and restart CUPS.
106     
107  4 - Copy tea4cups.conf into CUPS' configuration directory (where   
108      cupsd.conf resides) :
109     
110        $ cp tea4cups.conf /etc/cups/
111       
112  5 - Modify tea4cups.conf to suit your needs. Several examples     
113      are included.
114     
115  6 - There's no 6 !   
116 
117=============================================================================
118
119Troubleshooting :
120-----------------
121
122  1 - Set "LogLevel debug2" in CUPS' cupsd.conf
123 
124  2 - Restart CUPS.
125 
126  3 - Set "debug: yes" in the [global] section of tea4cups.conf
127 
128  4 - Print something on a print queue managed
129      by Tea4CUPS.
130     
131  5 - Look at CUPS' error_log file for diagnostic and error messages.
132 
133=============================================================================
134
135CUPS (Common UNIX(r) Printing System) is trademark property of Easy Software
136Products.
137
138You can download CUPS from :
139
140        http://www.cups.org
141
142=============================================================================
143   
144Please e-mail bugs to : alet@librelogiciel.com (Jerome Alet)
Note: See TracBrowser for help on using the browser.