- Timestamp:
- 03/12/05 22:29:42 (20 years ago)
- Location:
- tea4cups/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/README
r572 r576 1 1 # $Id$ 2 2 3 CupsOfTee: Tee for CUPS3 Tea4CUPS : Tee for CUPS 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 19 19 ============================================================================= 20 20 21 CupsOfTeeis the equivalent of the *nix command 'tee', but as a CUPS21 Tea4CUPS is the equivalent of the *nix command 'tee', but as a CUPS 22 22 backend. 23 23 24 CupsOfTeebehaves just like any other CUPS backend, but allows you to24 Tea4CUPS behaves just like any other CUPS backend, but allows you to 25 25 transparently send print jobs' datas to any number of outputs : other 26 26 CUPS backends, files or pipes. … … 38 38 -------------- 39 39 40 1 - Copy the ' cupsoftee' command into CUPS' backend directory,40 1 - Copy the 'tea4cups' command into CUPS' backend directory, 41 41 for example : 42 42 43 $ cp cupsoftee/usr/lib/cups/backend43 $ cp tea4cups /usr/lib/cups/backend 44 44 45 45 2 - Restart CUPS in order for this new backend to be detected. 46 46 47 47 3 - Either from CUPS' web interface, add new printers with 48 ' CupsOfTeemanaged' in front of the device's name.48 'Tea4CUPS managed' in front of the device's name. 49 49 50 50 Or by directly modifying CUPS' printers.conf file, prepend 51 each DeviceURI value with ' cupsoftee://', and restart CUPS.51 each DeviceURI value with 'tea4cups://', and restart CUPS. 52 52 53 4 - Copy cupsoftee.conf into CUPS' configuration directory (where53 4 - Copy tea4cups.conf into CUPS' configuration directory (where 54 54 cupsd.conf resides) : 55 55 56 $ cp cupsoftee.conf /etc/cups/56 $ cp tea4cups.conf /etc/cups/ 57 57 58 5 - Modify cupsoftee.conf to suit your needs. Several examples58 5 - Modify tea4cups.conf to suit your needs. Several examples 59 59 are included. 60 60 … … 70 70 2 - Restart CUPS. 71 71 72 3 - Set "debug: yes" in the [global] section of cupsoftee.conf72 3 - Set "debug: yes" in the [global] section of tea4cups.conf 73 73 74 74 4 - Print something on a print queue managed 75 by CupsOfTee.75 by Tea4CUPS. 76 76 77 77 5 - Look at CUPS' error_log file for diagnostic and error messages. -
tea4cups/trunk/tea4cups
r575 r576 2 2 # -*- coding: ISO-8859-15 -*- 3 3 4 # CupsOfTee: Tee for CUPS4 # Tea4CUPS : Tee for CUPS 5 5 # 6 6 # (c) 2005 Jerome Alet <alet@librelogiciel.com> … … 32 32 33 33 class TeeError(Exception): 34 """Base exception for CupsOfTeerelated stuff."""34 """Base exception for Tea4CUPS related stuff.""" 35 35 def __init__(self, message = ""): 36 36 self.message = message … … 55 55 """Initializes the CUPS backend wrapper.""" 56 56 confdir = os.environ.get("CUPS_SERVERROOT", ".") 57 self.conffile = os.path.join(confdir, " cupsoftee.conf")57 self.conffile = os.path.join(confdir, "tea4cups.conf") 58 58 if os.path.isfile(self.conffile) : 59 59 self.config = ConfigParser.ConfigParser() … … 194 194 if fullname.startswith('"') and fullname.endswith('"') : 195 195 fullname = fullname[1:-1] 196 available.append('%s cupsoftee:%s "CupsOfTee+%s" "CupsOfTeemanaged %s"' \196 available.append('%s tea4cups:%s "Tea4CUPS+%s" "Tea4CUPS managed %s"' \ 197 197 % (devicetype, device, name, fullname)) 198 198 os.remove(lockfilename) … … 209 209 210 210 # check that the DEVICE_URI environment variable's value is 211 # prefixed with " cupsoftee:" otherwise don't touch it.211 # prefixed with "tea4cups:" otherwise don't touch it. 212 212 # If this is the case, we have to remove the prefix from 213 213 # the environment before launching the real backend in cupspykota -
tea4cups/trunk/tea4cups.conf
r575 r576 1 1 # $Id$ 2 2 # 3 # CupsOfTee: Tee for CUPS3 # Tea4CUPS : Tee for CUPS 4 4 # 5 5 # This program is free software; you can redistribute it and/or modify