From owner-freebsd-questions Wed Mar 15 3: 2:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id BA70037B8DF for ; Wed, 15 Mar 2000 03:02:21 -0800 (PST) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 12VBZ1-000DG1-00; Wed, 15 Mar 2000 13:02:07 +0200 From: Sheldon Hearn To: GregoryC@stcinc.com Cc: FreeBSD Questions Subject: Re: How to log all print jobs In-reply-to: Your message of "Tue, 14 Mar 2000 09:34:15 PST." <38CE7817.C3C967EA@stcinc.com> Date: Wed, 15 Mar 2000 13:02:07 +0200 Message-ID: <50964.953118127@axl.ops.uunet.co.za> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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