> From [EMAIL PROTECTED] Fri Mar  1 18:32:52 2002
> From: Dave Lovelace <[EMAIL PROTECTED]>
> Subject: Re: LPRng: as & ae strings
> To: [EMAIL PROTECTED] (Patrick Powell)
> Date: Fri, 1 Mar 2002 21:32:07 -0500 (EST)
>
> Patrick Powell wrote:
> > 
> > Did you double check the /etc/lpd.conf file to make sure that
> > it has the right values?
> > 
> I don't see what you mean, Patrick.  The lines in /etc/lpd.conf are those I
> included in my message (included below, quoted, in the balance of your
> message), to wit:
> ae=jobend $H $n $P $k $b $t $T
> as=jobstart $H $n $P $k $b $t $T
>
> Or am I missing something truly obvious?  As I said, when I originally
> implemented this, I tested it & it worked then.
>
> Again, thanks for anything you can offer.
> -- 
> - Dave Lovelace
>   [EMAIL PROTECTED]
>   [EMAIL PROTECTED]
>
> > 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)
> > 
> > > From [EMAIL PROTECTED] Thu Feb 28 08:31:06 2002
> > > From: Dave Lovelace <[EMAIL PROTECTED]>
> > > Subject: LPRng: as & ae strings
> > > To: [EMAIL PROTECTED]
> > > Date: Thu, 28 Feb 2002 10:34:10 -0500 (EST)
> > >
> > > I'm trying to put the "job title" (-T option in lpr) into the accounting info.
> > > I added it to the as & ae strings in lpd.conf.
> > >
> > > Now, at one point this was working; I tested it, and the information was
> > > there.  Now it's not.  I don't think I've made any changes in the setup.
> > > Anyone have any ideas?
> > >
> > > Thanks!
> > >
> > > -- 
> > > - Dave Lovelace
> > >   [EMAIL PROTECTED]
> > >   [EMAIL PROTECTED]
> > >
> > > Lines from /etc/lpd.conf:
> > > # Purpose: accounting at end (see also af, la, ar, as)
> > > #   default ae=jobend $H $n $P $k $b $t  (STRING)
> > > #   added $T (title) for new rev of LASER script
> > > ae=jobend $H $n $P $k $b $t $T
> > > ...
> > > # Purpose: accounting at start (see also af, la, ar)
> > > #   default as=jobstart $H $n $P $k $b $t  (STRING)
> > > #   added $T (title) for new rev of LASER script
> > > as=jobstart $H $n $P $k $b $t $T

Well,  here are my test results:

h110: {196} % lpr "-Tthis is it" /tmp/hi
h110: {197} % lpq
Printer: t1@h110 'Test Printer 1'
 Queue: 1 printable job
 Server: pid 32477 active
 Unspooler: pid 32478 active
 Status: processing 'dfA476h110.private', size 3, format 'f', IF filter 'filter' at 
16:56:18.845
 Filter_status: FILTER 32479 sleeping 5
 Rank   Owner/ID                  Class Job Files                 Size Time
active papowell@h110+476            A   476 /tmp/hi                  3 16:56:18
h110: {198} % cat /var/tmp/LPD/t1/acct
jobstart '-Hh110.private' '-npapowell' '-Pt1' '-kcfA476h110.private' '-b3' 
'-t2002-03-02-16:56:18.840' '-Tthis is it'
jobend '-Hh110.private' '-npapowell' '-Pt1' '-kcfA476h110.private' '-b3' 
'-t2002-03-02-16:56:23.888' '-CA' '-J/tmp/hi'


Using your string in the printcap:

lp:as=jobstart $H $n $P $k $b $t $T
  :lp=/dev/null
  :sd=/var/tmp/LPD/%P
  :filter=/tmp/filter
 (this is just a dummy filter)

Patrick

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