root / tea4cups / trunk / README @ 615

Revision 615, 5.1 kB (checked in by jerome, 20 years ago)

job-billing is now available as $TEABILLING
Job's IPP message file is now available as $TEACONTROLFILE

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