·  AWStats – Scripts – awstats_buildstaticpages.pl

 

- Info:

  - awstats_buildstaticpages.pl is used to create multiple static reports by multiple calls to awstats.pl.

  - It can also call HTMLDOC to convert generated reports to PDF.

  - Call syntax is awstats_buildstaticpages.pl [awstats.pl parameters] [awstatsbuildstaticpages.pl parameters]

 

- awstats.pl parameters:

  - config = test             – Defines configuration file awstats.test.conf

  - update                    – Create or update DB files.

  - lang   = EN               – Create HTML report in defined language (en,de,es,fr,...)

  - month  = all              – Create report for all months of year defined with -year.

  - month  = 01               – Create report only for first month of year defined with -year.

  - year   = 2010             – Create report for months defined with -month of year 2010.

 

- awstatsbuildstaticpages.pl parameters:

  - awstatsprog    = D:\Installed\Support\AWStats\wwwroot\cgi-bin\awstats.pl – Path to awstats.pl

  - dir            = D:\Temp\AWStats\Reports                                 – Output dir for static reports

  - builddate      = %YY%MM%DD                                               – Add build date to filenames

  - staticlinksext = rep                                                     – Use prefix .rep instead .html

  - buildpdf       = D:\Installed\Support\HTMLDOC\ghtmldoc.exe               – Build a PDF from reports.

 

- Examples:

  - Update DB using awstats.test.conf configuration file:

    awstats_buildstaticpages.pl -config=test