> From [EMAIL PROTECTED] Mon Jul 14 15:06:01 2003
> Subject: LPRng: %Q and Accounting
> From: "Chris O'Regan" <[EMAIL PROTECTED]>
> To: LPRng <[EMAIL PROTECTED]>
> Date: 14 Jul 2003 17:31:57 -0400
>
> 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

:af=|$- /path/to/script $P $Q ....

Or you can use:

:af=|/path/to/script

which will have -Q 'oroginal quque name' -P 'printer name'

as options.

Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
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 [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