Re: lprng and logs
On Wed, 4 Nov 1998, Pere Camps wrote:
> Max,
>
> > Have you tried looking in /var/log/lp-acct? LPRng saves very detailed
> > accounting info in there if you enable accounting. If it's not
> > enabled, edit your /etc/printcap and add the following entry for the
> > desired printer:
> >
> > :af=/var/log/lp-acct
>
> I have it enabled, but I have no /var/log/lp-acct file. This is my
> /etc/printcap:
Hi,
I was in the middle of the reply when I had an idea: try to look at
different places for the logs. Well, for my surprise I found some detailed
log at /var/spool/lpd/printer_name/status.{printer}
I pasted some lines bellow so you can check if this is enough:
-------------
printing 'mario@linux1+860', start, attempt 1 at 10:37:20
opening '/dev/lp1' at 10:37:20, attempt 1, timeout 10, grace 0 at 10:37:20
accounting at start 'mario@linux1+860' at 10:37:20
printing 'mario@linux1+860', file 1 'cathedral-bazaar.ps', size 369942,
format 'f' at 10:37:20
printed 25 percent of 369942 bytes of cathedral-bazaar.ps at 10:37:26
printed 50 percent of 369942 bytes of cathedral-bazaar.ps at 10:37:28
printed 75 percent of 369942 bytes of cathedral-bazaar.ps at 10:37:29
printed 100 percent of 369942 bytes of cathedral-bazaar.ps at 10:43:06
printed all 369942 bytes at 10:43:06
accounting at end 'mario@linux1+860' at 11:00:55
printing 'mario@linux1+860', closing device at 11:00:56
printing 'mario@linux1+860', finished at 11:00:56
subserver status 'JSUCC' for 'mario@linux1+860' at 11:00:56
job 'mario@linux1+860' removed at 11:00:56
server finished at 11:00:56
----------------
Hope this help and sorry for the long msg.
[]s,
Mario O.de Menezes | "Many are the plans in a man's heart, but
IPEN-CNEN/SP | is the Lord's purpose that prevails" Prov. 19.21
Reply to: