From owner-freebsd-questions Sun Sep 8 7:23: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D44837B400 for ; Sun, 8 Sep 2002 07:23:00 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id C20D543E3B for ; Sun, 8 Sep 2002 07:22:56 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from asterix (ndf-dial-196-30-124-186.mweb.co.za [196.30.124.186]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Sun, 08 Sep 2002 16:22:51 +0200 Message-ID: <007c01c25743$4f9cd9e0$0200000a@perimeter.co.za> From: "Patrick O'Reilly" To: sroberts@dsl.pipex.com Cc: "FreeBSD Questions" References: <1031488049.16286.61.camel@Demon.vickiandstacey.com> <002001c2573a$8c42c160$0200000a@perimeter.co.za> <1031492377.16286.67.camel@Demon.vickiandstacey.com> Subject: Re: Webalizer processing both httpd-access AND httpd-errorlogstogether - possible? Date: Sun, 8 Sep 2002 16:23:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Here's what I've got in cron for webalizer: > # Generate Web Stats > 15 */6 * * * /usr/local/bin/webalizer /var/log/httpd-access.log > > Just so that I'm sure of what I'm doing, would your suggestion mean > something along the lines of: > 15 */6 * * * /bin/cat /var/log/httpd-access.log /var/log/httpd-error.log > | /usr/local/bin/webalizer > > Do let me know if I understand you correctly, or missing something here, > please. Yes. in "man webalizer" you will find: --- o If a log file was specified, it is opened and made ready for processing. If no log file was given, STDIN is used for input. If the log filename '-' is specified, STDIN will be forced. --- By doing "/bin/cat /var/log/httpd-access.log /var/log/httpd-error.log | /usr/local/bin/webalizer" you are simply supplying both log files at once as STDIN to webalizer, and thereby circumventing the fact that only one file name may be specified on the command line. Of course, you could also: --- cat file1 file2 > /tmp/file3 ; webalizer file3 --- But this simply forces more diskIO, for no material benefit. HTH. PS: Please find a way to send your emails as plain text. Your multipart messages will force many people to manually open the attachment before being able to read your message. For many that is just enough hassle to send their finger directly to the "delete" button instead. You will almost certainly find more people reading and responding to your questions if you take this simple step to simplify their lives! :) --- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message