Permissions for Controlfile
Helge Blischke
h.blischke at acm.org
Fri Jan 7 06:49:01 PST 2011
Daniel wrote:
> Hello,
>
> in a filter-script I need the name of the printerqueue where the document
> is printed on. So I try to read the controlfile in the spool-Diretory. But
> It has the wrong permissions (root:lp, rw--) so User lp (the filter-script
> is running as user "lp") can't read it.
>
> Can I anywhere adjust the permissions?Or get the Queue-Name elsewhere?
>
> Regards
>
> Daniel
Read the filter manal page and look for the environment vatiables.
PRINTER contains the printer name, i.e. the queue name.
Helge
More information about the cups
mailing list