Well... I'm a little confused here. The list of variables that you sent
that are used in accounting don't show up in my accounting file. Here are
the lines from a print job in 'acct':

START A='tatela@njmsa+118' P='laser1' n='tatela' H='njmsa.umdnj.edu'
D='997796748'
filestart '-q20682' '-p9181' '-t2001-08-14-09:46:05.694'
'-Atatela@njmsa+118' '-ntatela' '-Plaser1'
fileend '-b1' '-T28' '-q20682' '-p9182' '-t2001-08-14-09:46:25.636'
'-Atatela@njmsa+118' '-ntatela' '-Plaser1'
END p=1  A='tatela@njmsa+118' P='laser1' n='tatela' H='njmsa.umdnj.edu'
D='997796748'

...that doesn't match H, n, P, k, b, t that you said were the default. I
also already have a $J as far as I know, that contains the full filename
of what was printed. Am I mixing apples and oranges here, or...?

---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 732/235.4170 (5-4170)
\__/ Univ. of Med. and Dent. | IST/ACS - Robert Wood Johnson MS - S-B11

On Sat, 2 Feb 2002, Patrick Powell wrote:

> > From [EMAIL PROTECTED] Fri Jan 11 07:13:59 2002
> > Date: Thu, 10 Jan 2002 19:20:58 -0500 (EST)
> > From: Ryan Novosielski <[EMAIL PROTECTED]>
> > To: LPRng Mailing List <[EMAIL PROTECTED]>
> > Subject: LPRng: LPRng and Samba
> >
> > This is technically more of a Samba problem, but I bet someone will be
> > willing to help me a little here.
> >
> > The problem here is that we have 4 campus servers. Each one hosts a Samba
> > domain. Sometimes, users for whatever reason will go to a different campus
> > (where they may or may not have an account -- the problem occurs when they
> > do not). They log in using the Samba domain of their home site, but
> > attempt to use printers on the campus they are visiting. While the PC they
> > are using knows what their username is, and I can take this on good faith,
> > since they do not have an account on the machine Samba serving the
> > printers, their jobs print as the network guest user. This is clearly a
> > problem for accounting. Does anyone know of a way for LPRng to find out
> > who the client PC is logged in as by the time accounting occurs? We don't
> > wish to just give away pages to students who happen to travel. It's a
> > shame the setup is the way it is, but I'm just looking for a way to make
> > this work in our current environment.
> >
> > Thanks for any help you may wish to give me!
> >
> > ---- _  _ _  _ ___  _  _  _
> > |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
> > |$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
> > \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630
>
> The trick, as somebody pointed out a while ago, is to get the user information
> put into the job file.
>
> You can do this several ways:  use the class field, 'mail to' stuff, or even
> the job name:
>
>    print command = lpr -C%u@%m
>    print command = lpr -J%u@%m
>    print command = lpr -m%u@%m
>
> You might want to modify the lpd.conf file a bit:
> # Purpose: accounting at end (see also af, la, ar)
> #   default ae=jobstart $H $n $P $k $b $t  (STRING)
> as=jobend $H $n $P $k $b $t $C $M $J
> ...
> # Purpose: accounting at start (see also af, la, ar)
> #   default as=jobstart $H $n $P $k $b $t  (STRING)
> as=jobstart $H $n $P $k $b $t $C $M $J
>
> (the $J forces '-Jvalue' to be put into the accoutning file)
>
> I suppose that I should add these to the list of variables used for accounting
>
> Patrick Powell                 Astart Technologies,
> [EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
> Network and System             San Diego, CA 92123
>   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 [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.
> -----------------------------------------------------------------------------
>



-----------------------------------------------------------------------------
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