Permissions for Controlfile

Daniel ds at marco.de
Fri Jan 7 14:57:43 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.
>
Hmmm, thats very cool. Thanks.

Regards

Daniel

> Helge
>





More information about the cups mailing list