Have you tried the 'force_queuename' option in printcap?

This is what we use for setting the tray, eg. 

printer1-a3:[EMAIL PROTECTED]:force_queuename=printer1-a3:

The filter program then uses %Q to decide how to print.

Cheers,

sam

On Mon, 2003-07-14 at 23:31, Chris O'Regan wrote:
> Occasionally we have the need to move one or more queues to another
> printer (for example, when a printer needs maintenance).  If we do this
> using aliases, then it will break our accounting because the value
> passed to the accounting script via -P is the primary name, not the
> selected queue.  That is, since we associate a quota database with a
> queue name, the wrong database is selected when an alias is used.
> 
> At the moment, we get around this by creating separate queues, but this
> is a bit of a nuissance.  What would be neat is if we could get the
> selected queue (i.e. %Q) passed to the accounting script.  Is this
> possible?
> 
> 
> Thanks,
> 
> Chris
> 
> 
> 
> -----------------------------------------------------------------------------
> 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 [EMAIL PROTECTED] (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 [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
> 
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
-- 
CERN, Geneva 
IT - Product Support - Unix Infrastructure
E-mail: [EMAIL PROTECTED]


-----------------------------------------------------------------------------
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 [EMAIL PROTECTED] (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 [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to