[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#711327: cups-client: the -h option has no effect



On Thu 06 Jun 2013 at 12:55:44 +0200, Vincent Lefevre wrote:

> The -h option as documented in the man pages has no effect, at least
> for lpstat and lpq: the server name given in /etc/cups/client.conf
> (ServerName line) is taken into account, whether a -h option is used
> or not. No such problem with the CUPS_SERVER environment variable.

The command

   lpstat -v -a 

shows all the print queues for ServerName or the server specified by
CUPS_SERVER environment variable, the devices they are attached
to and their accepting states.

Five things to note:

1. The environment variable overrides both the user and system
   client.conf files.

      http://localhost:631/help/sharing.html?TOPIC=Getting+Started

2. The command

      lpstat -a -v

   does not give an output identical to lpstat -v -a.

3. The -h option takes precedance over a user/system client.conf file
   and the CUPS_SERVER environment variable. Using an alternative server
   we would execute

      lpstat -h hostname[:port] -a -v

4. The command

      lpstat -a -v -h hostname[:port]

   does not produce the same outcome as the previous command.

5. Upstream would probably not see any bug in this behaviour.

      http://thread.gmane.org/gmane.comp.printing.cups.bugs/5885

Regards,

Brian.


Reply to: