several instances of cups ...
Kurt Pfeifle
k1pfeifle at gmx.net
Mon Aug 6 16:17:03 PDT 2007
max server wrote:
> several instances of cups ...
> I wanted to solve this over the port attribute in the cupsd.config!
> is this the correct solution?
> When this is correct, how I can print on an cups instance of my choice?
> I have it tried with: lp -h hostname:port filename
>
> Which means port? Is this the cups port or ...
>
> Is there another solution to address different instancen of cups?
Assuming you have 2 additional instances of CUPS running on a server,
bound to TCP ports 1631 and 2631. You can connect the commandline clients
to it by using
IPP_PORT=2631 lp -h hostname -d printername filename
or
IPP_PORT=2631 CUPS_SERVER=hostname lp -d printername filename
or
IPP_PORT=2631 lp -d printername filename (#for localhost no need
to specify hostname)
or
IPP_PORT=1631 lpstat -o
IPP_PORT=1631 lpstat -v
IPP_PORT=1631 lpsadmin -h hostname -p newprinter -v socket://ip-addr
If you want to connect via the Unix domain socket on localhost, use
CUPS_SERVER=/path/to/sockfile lp -d printername jobfile
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH ..................... Hedelfinger Strasse 58
A RICOH Company ........................... D-70327 Stuttgart/Germany
More information about the cups
mailing list