query for printer location
Helge Blischke
H.Blischke at srz-berlin.de
Sun May 16 09:19:31 PDT 2004
Anonymous wrote:
>
> Is there an easy way to query cups (like from the command line) to get a list of available printers complete with their descriptions (-D) and locations (-L) as given to lpadmin?
>
> "lpstat -v" is close to what I want, but I can't see any way to tell the description or location of each printer.
>
> How would a printing application (say a shell script) find out what printers are available to present a print dialog to the user which was complete with all information about each printer?
I'd suggest to tweak the ipptest utility or (write a wrapper around
it) to make a command that performs a get-printer-attributes
request and prints the attributes you want.
Helge
--
H.Blischke at srz-berlin.de
H.Blischke at srz-berlin.com
H.Blischke at acm.org
More information about the cups
mailing list