[cups] How to call a script when a job arrives

Marc Haber mh+cups at zugschlus.de
Fri Apr 5 03:43:46 PDT 2019


On Fri, Apr 05, 2019 at 12:31:01PM +0200, Marc Haber wrote:
> On Fri, Apr 05, 2019 at 10:47:52AM +0100, Brian Potkin wrote:
> > Interface scripts have been unsupported by CUPS since v2.2b1. I would
> > use Tea4CUPs. There is a Debian wiki page.
> 
> Tea4cups looks just like my cup of coffee ;-)

It is, delicious.

> How would that work: I have the printer autodiscovered, yielding a
> dnssd:// device URI, and then change this URI to tea4cups:/dnssd://,
> right? Since the "modify printer" web page won't give me the change to
> hand-edit the device URI, I would manually have to edit the
> printers.conf file?

It's tea4cups://dnssd://, and it works like a charm. Case closed.

tea4cups.conf excerpt:
[c534-ka51]
prehook_turnon: curl 'https://knx-server.local/proxy/visu/cgi-bin/w?a=1/7/11&v=81'

Thanks.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421


More information about the cups mailing list