lpadmin - password option

Michael Sweet mike at easysw.com
Sat Aug 6 05:20:34 PDT 2005

angelb at bugarin.us wrote:
>>>Also, wouldn't it be nice to be able to specify multiple servers for
>>>the lpadmin? Just a thought... :)
>>You can already do that...
> How? Here's the manpage for lpadmin:
>   lpadmin [ -E ] [ -h server ] -p printer option(s)

Right, that's the "official" documentation, but the current
implementation allows multiple -h options.

> I tried using the following variations:
>     -h server1 -h server2   # it only picks the second server listed
>     -h server1, server2     # doesn't work
>     -h serever1 server2     # doesn't work
> What's the correct way to specify multiple servers for lpadmin?

lpadmin -h server1 -p printer1 option(s) -h server2 -p printer2 option(s)

Basically, only one server is actively selected at any time.

Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com

More information about the cups mailing list