Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2000 13:02:07 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        GregoryC@stcinc.com
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to log all print jobs 
Message-ID:  <50964.953118127@axl.ops.uunet.co.za>
In-Reply-To: Your message of "Tue, 14 Mar 2000 09:34:15 PST." <38CE7817.C3C967EA@stcinc.com> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 14 Mar 2000 09:34:15 PST, Gregory Carvalho wrote:

> Is there a method to log information about each print job to a file? 

The lpd(8) daemon logs via the syslog(3) interface on the LOG_PR
facility.  Have a look at what you get when you do this:

1) Add this line to /etc/syslog.conf:

	lpr.*		/var/log/lpd-all

2) Create the file /var/log/lpd-all:

	touch /var/log/lpd-all

3) Restart the syslogd(8) daemon:

	kill -HUP `cat /var/run/syslog.pid`

You can read this up for yourself (well, not the verbatim commands) in
the lpd(8), syslog.conf(5) and syslogd(8) manual pages.

I have absolutely no idea how much information you'll get in lpd-all,
but it's a start.

Ciao,
Sheldon.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50964.953118127>