r6 - 04 May 2006 - 00:53:42 - SamHaslerYou are here: TWiki >  Codev Web > CodevDocumentationProject > StatisticsCgiScript
Tags:
, create new tag
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 ]

    • Isn't this what the WarningsDotTxt? file is for? -- MartinCleaver - 26 Sep 2004

-- MartinCleaver - 25 Jun 2003

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r6 < r5 < r4 < r3 < r2 | More topic actions
 
Powered by TWiki
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 SourceForge.net Logo