Date: Sun, 8 Sep 2002 16:23:28 +0200 From: "Patrick O'Reilly" <bsd@perimeter.co.za> To: sroberts@dsl.pipex.com Cc: "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG> Subject: Re: Webalizer processing both httpd-access AND httpd-errorlogstogether - possible? Message-ID: <007c01c25743$4f9cd9e0$0200000a@perimeter.co.za> References: <1031488049.16286.61.camel@Demon.vickiandstacey.com> <002001c2573a$8c42c160$0200000a@perimeter.co.za> <1031492377.16286.67.camel@Demon.vickiandstacey.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007c01c25743$4f9cd9e0$0200000a>