linux:webalizer
Differences
This shows you the differences between two versions of the page.
| Previous revision | |||
| — | linux:webalizer [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Webalizer, starting point ====== | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | #! /bin/sh | ||
| + | # | ||
| + | # A wrapper for launch the webalizer. | ||
| + | # | ||
| + | # It scans the /etc file looking for files who match | ||
| + | # with webalizer*conf, | ||
| + | # of these files. | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # We need this umask because | ||
| + | # files created by webalizer | ||
| + | # must be world readable | ||
| + | umask 0022 | ||
| + | |||
| + | for i in / | ||
| + | do | ||
| + | / | ||
| + | done | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | Create the file / | ||
| + | |||
| + | <code cron> | ||
| + | SHELL=/ | ||
| + | PATH=/ | ||
| + | MAILTO=root | ||
| + | |||
| + | # | ||
| + | # this script create the statistics pages | ||
| + | # It starts at 5:00 every day. | ||
| + | # | ||
| + | 0 5 * * * root / | ||
| + | |||
| + | </ | ||
