> From [EMAIL PROTECTED] Wed Oct  2 14:43:10 2002
> Date: Wed, 2 Oct 2002 15:31:49 -0500 (CDT)
> From: Robert Giles <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Print accounting and filename logging
>
> Howdy folks - I've written a little Perl script to take pertinent
> information from a print job and store it in a MySQL database for later
> review.  Problem is I can't seem to get the $N (filename) variable to be
> passed to my program, ie:
>
> :as=|/usr/libexec/filters/acct.pl $H $P $n $b $N
>
> ...doesn't return anything in the $N variable.  Does $N only work for
> programs used in the :filter line of the /etc/printcap file?
>
> Thanks in advance for any suggestions!
>
> -------------------------------------------------------
> Robert Giles                    [EMAIL PROTECTED]
> SPL/ARL:UT                                 512/835-3077
>

The accounting script is  invoked for a job.  The $N variable is the
N entry from the printcap file corresponding to the file name.
Since there may be multiple files in a job,  this value is not provided to the
accounting filter.

ON the other hand,  you can GET the names of files value by looking at the CONTROL
environment variable,  which has the control file image.
 
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