Re: [cups] Query queue Location/Description from command-line?

Alex Korobkin <[email protected]> Tue, 28 Mar 2023 17:50:10 -0400
Newsgroups gmane.comp.printing.cups.general
Message-ID <CA+3RNfif-Nschggodca2E0MyfyEPug3Aru+d2_mxnKBz73sMHg@mail.gmail.com>
You can set up an elevated script to copy printers.conf into
printers.conf.bak on schedule with 644 permissions, and then parse that
file instead.

On Tue, Mar 28, 2023 at 4:15 PM Peter Schultz <[email protected]> wrote:

> I'm trying to write a script to synchronize related print queues via the
> command-line and I need to determine the given queue's Location and
> Description attributes (set via lpadmin) via script.
>
> I'd rather not have to run this script as an elevated user, meaning I'd
> rather avoid parsing printers.conf.
>
> I've perused all of the manpages I can find and nothing seems to let me do
> this. Is there something I'm missing? Should I just curl localhost:631 for
> the printer in question?
>
> Sincerely,
> Peter Schultz
>
> --------------------
>
> Applications Engineer, Enterprise Application Services
> Office of Information Technology
> University of Alaska System
> _______________________________________________
> cups mailing list
> [email protected]
> https://lists.cups.org/mailman/listinfo/cups
>


-- 
-Alex
_______________________________________________
cups mailing list
[email protected]
https://lists.cups.org/mailman/listinfo/cups