Difference: TWikiSiteTools (11 vs. 12)

Revision 122005-07-13 - 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:
      /twiki5/bin/statistics
>
>
    • Update current month for all webs you have access to:
      /twiki5/bin/statistics
 
    • Update current month for Main web only:
      /twiki5/bin/statistics/Main
Changed:
<
<
    • Update January 2000 for Main web:
      /twiki5/bin/statistics/Main?logdate=201810
>
>
    • Update Oct 2018 for Main web:
      /twiki5/bin/statistics/Main?logdate=201810
    • Update Oct 2018 for the ProjectX, ProjectY and ProjectZ webs:
      /twiki5/bin/statistics?logdate=201810;webs=ProjectX,ProjectY,ProjectZ
 

Log Files

 
This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiSiteTools