[cups] cups, own interface and gziptoany

Johannes Meixner jsmeix at suse.de
Fri Aug 12 08:37:44 PDT 2016


Hello,

On Aug 10 13:26 Daniel Spannbauer wrote (excerpt):
> printer uses via an interface script a self written driver
> (which is an gawk script).
>
> The interface contains:
> /etc/cups/filters/ownfilter < $6
>
> Don't know why, but sometimes cups starts a filter "gziptoany" before
> the filter is started. But now, $6 is empty and the interface script
> can't work.

Any filter must be prepared to read it input either
from a file when its name is provided as $6
or from stdin when $6 is empty, see "man 7 filter".

For some examples have a look at
https://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS

This could be a bit outdated but in general it should be o.k.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)




More information about the cups mailing list