[prev in list] [next in list] [prev in thread] [next in thread]
List: lprng
Subject: LPRng: New printcap facility: client.xxx and server.xxx selection
From: Patrick Powell <papowell () astart ! com>
Date: 2002-07-18 15:58:06
[Download RAW message or body]
After much consideration, added the 'client.xxx' and 'server.xxx'
facility. Briefly, if you have a printcap entry of the form
client.xxx or server.xxx then this can be used to set the corresponding
xxx variable when the printcap entry is used by the lpd server or
the LPRng client programs lpr, lpq, lprm, checkpc, etc.
Entry Program Type Sets
server.xxx = vvv lpd (server) xxx = vvv
client.xxx = vvv lpr,lpq... (client) xxx = vvv
The purpose of this enhancement is to allow a single printcap entry
to be used for both client and server operation, especially in
situations where the lpd server is forwarding or sending jobs to
another lpd queue.
Example of use:
lp:
# used by clients, forcess them to send to
# specified server
:lp=%P@server.hostname:force_localhost@
# used by lpd server
# the server will now send jobs to the
# specified destination
:server.lp=%P@destination
This is equivalent to and replaces the :client and :server
printcap flags, as shown below:
lp:client
:lp=%P@server.hostname:force_localhost@
lp:server
:lp=%P@destination
The selection operation also works with values in the
lpd.conf file, allowing global overrides for clients and
servers. (I can't imagine a use for this, but it is there
if somebody wants to use it.)
The lpc client and lpc server commands will display the
selected client.xxx and server.xxx values. They are also
propagated to the PRINTCAP_ENTRY environment variables
for filters.
Patrick Powell Astart Technologies
papowell@astart.com 6741 Convoy Court
Network and System San Diego, CA 92111
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to majordomo@lprng.com (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to majordomo@lprng.com
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest myname@host.org
unsubscribe LIST <mailaddr> | unsubscribe lprng myname@host.org
If you have major problems, send email to papowell@astart.com with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic