Automatic/manual use

 With a 
 crontab 

Cron-w3perl.pl have been introduced to avoid lots of lines in your crontab and it will compute the scripts in the right order. So just use this one please.
To reset/initialize all stats, use 'cron-w3perl.pl -a'. Once the stats have been run once, you can add a cron entries to update your stats daily.
You can can define in cron-w3perl.pl which scripts you want to run, when and the frequency. Error/Referer/Agent/Session/Url are optional scripts.
  • Unix

You should have permission to execute cron commands (ask your administration system if you can't). Use telnet to connect and type the command 'crontab -e' to edit your crontab. A editor should then be available. Write the full pathname for the files to run.

You only have to add this line in your crontab :

    • standard :
      01 00 * * * /<full_path>/w3perl/cron-w3perl.pl -e
    • to load a configuration file :
      01 00 * * * /<full_path>/w3perl/cron-w3perl.pl -e -c /<full_path>/w3perl/config-oj.pl
    • hourly update :
      01 * * * * /<full_path>/w3perl/cron-w3perl.pl > /dev/null
Then check via 'crontab -l' your entry is valid.

- Add a first line with MAILTO='<your email>' if you want to receive the update output.
- Redirection to /dev/null is used to cancel messages report. Delete it if you want to get a report from the crontab.
- The '-e' is here to launch all scripts in an incremental way to save CPU. You only need to launch this script ONCE a day if you're using this flag. The stats should have been initialised first with 'cron-w3perl.pl -a' before.
- Best is to launch update during the second half of the night to get lower impact on CPU.
- If you need more stats update (once every hour), just add cron-w3perl.pl without any flag (except the '-c' flag if you need to load a specific configuration file). Default should be ok for most people but if you need more control, edit the script, you'll be able to specify when each script will be run.

  • Windows

From v2.95, Windows users can also run the cron-w3perl.pl to run all the stats in one go.
Use the command 'at' to automatically run your stats.


 Without a 
 crontab 

  • Unix / Windows

Once all stats have been initialize using the command 'cron-w3perl.pl -a', you'll be able to update manually your stats by using the following command 'cron-w3perl.pl -e' at least once a week. You can use the web administration interface or command line.