0

AWStats (awstats_buildstaticpages.pl) generates many htmls, e.g.

 awstats.mysite.alldomains.html
 awstats.mysite.allhosts.html
 awstats.mysite.allrobots.html
 awstats.mysite.browserdetail.html
 awstats.mysite.errors404.html
 awstats.mysite.html
 awstats.mysite.keyphrases.html
 awstats.mysite.keywords.html
 awstats.mysite.lasthosts.html
 awstats.mysite.lastrobots.html
 awstats.mysite.osdetail.html
 awstats.mysite.refererpages.html
 awstats.mysite.refererse.html
 awstats.mysite.session.html
 awstats.mysite.unknownbrowser.html
 awstats.mysite.unknownip.html
 awstats.mysite.unknownos.html
 awstats.mysite.urldetail.html
 awstats.mysite.urlentry.html
 awstats.mysite.urlexit.html

Is there an option to output in a single large html, instead of 20 html files?

EDIT: Basically, what I want is awstats_buildstaticpages.pl to output a single html instead of many html files.

ohho
  • 1,005
  • 8
  • 19
  • 34

1 Answers1

1

UPDATE

Is there a way to merge all the html reports into a single html?

cat can do that:

$ cat awstats.mysite.*.html > awstats.mysite.html

Just use -output:

perl awstats.pl -config=mysite -output -staticlinks > awstats.mysite.html

instead of -output=x:

perl awstats.pl -config=mysite -output=alldomains -staticlinks > awstats.mysite.alldomains.html
perl awstats.pl -config=mysite -output=allhosts -staticlinks > awstats.mysite.allhosts.html
quanta
  • 51,413
  • 19
  • 159
  • 217
  • 1
    Use `-output` alone outputs only the main report, but does not output other detail reports (e.g. keyphrases, keywords, etc.). Is there a way to merge all the html reports into a single html? – ohho Oct 07 '11 at 03:54
  • I've updated my answer. – quanta Oct 07 '11 at 08:05
  • Thanks for the update. `cat` *.html does not update links (to other external htmls) within the main html (awstats.mysite.html) though. – ohho Oct 10 '11 at 10:55