Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r12  >  r11  ...
TWikiSiteTools 12 - 13 Jul 2005 - Main.TWikiContributor
Line: 1 to 1
 

TWiki Site Tools

Line: 68 to 68
 
    • Attention: The script must run as the same user as the CGI scripts are running, which is user nobody on many systems. Example crontab entry:
      0 0 * * * (cd /path/to/twiki/bin; ./statistics >/dev/null 2>&1)
    • There is a workaround in case you can't run the script as user nobody : Run the utility twiki/bin/geturl in your cron job and specify the URL of the twiki/bin/statistics script as a parameter. Example:
      0 0 * * * (cd /path/to/twiki/bin; ./geturl mydomain.com /urlpath/to/twiki/bin/statistics >/dev/null 2>&1)
Added:
>
>
When running from the command line or a cron job, you can pass parameters to the script like this:
./statistics -logdate 200605 -webs TWiki,Sandbox
 

Generating statistics manually by URL

  • The twiki/bin/statistics script can also be executed as a CGI script, just enter the URL in your browser. Examples:
Changed:
<
<
    • Update current month for all webs:
      /twiki/bin/statistics
>
>
    • Update current month for all webs you have access to:
      /twiki/bin/statistics
 
    • Update current month for Main web only:
      /twiki/bin/statistics/Main
Changed:
<
<
    • Update January 2000 for Main web:
      /twiki/bin/statistics/Main?logdate=202412
>
>
    • Update Dec 2024 for Main web:
      /twiki/bin/statistics/Main?logdate=202412
    • Update Dec 2024 for the ProjectX, ProjectY and ProjectZ webs:
      /twiki/bin/statistics?logdate=202412;webs=ProjectX,ProjectY,ProjectZ
 

Log Files


Revision 12r12 - 13 Jul 2005 - 23:14:56 - TWikiContributor
Revision 11r11 - 13 Jul 2005 - 23:14:56 - TWikiContributor
This site is powered by the TWiki collaboration platform.
All material on this collaboration platform is the property of the contributing authors.
All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
Syndicate this site RSSATOM