Tags:
create new tag
, view all tags
Module name statistics StatisticsCgiScript
Location TWIKIROOT/bin/statistics
Summary Generates the WebStatistics page. Called by cron or via web by link on WebStatistics page
Primary Author RichardDonkin

CVS history http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/statistics
CVS alpha http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/statistics?rev=HEAD&content-type=text/vnd.viewcvs-markup
Contributing authors (see CVS History)
IsClass NO
First TWikiRelease to be filled out

Purpose

To update the WebStatistics page.

Used by

One of:

  • This cgi script is invoked by the user when the user clicks 'force update' on the WebStatistics page
  • It is also often called by cron so that stats pages are always up to date.
  • It is set up using the TWikiSiteTools

TWiki Modules used

This CGI script depends on the following TWiki modules for functionality:

External Modules used

This CGI script also depends on the following external modules:

  • None

PublicMethods

This section lists the methods that can be used by the scripts and by other modules

  • none

PrivateMethods

These do not need to be not documented yet

Please see CodevDocumentationProject and CodevDocumentationProjectDev for comments on the format of these pages.

Command line parameters

  • -logdate=200404
  • -web

-- MartinCleaver - 23 Jun 2002

Issues

Doesn't take the -q flag

  • The other BackendScripts can be called with '-q' to suppress output in the event of the script working correctly. It would be nice if this script also had that option.
    • Workaround: (not tested) put 'statistics 2>&1 1>/dev/null' in your cron entry. Beware that you will never get any output from it even it is failing.

  • This flag should be implemented. However, I think the best approach is to define a suitable log file and put all errors there - this shouldn't grow too quickly. I am very much against throwing away errors. [ RichardDonkin 25 Jun 2003 ]

-- MartinCleaver - 25 Jun 2003

Topic revision: r6 - 2006-05-04 - SamHasler
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.