Menu

Error in parameter parsing ?

Developers
Peter
2007-02-02
2013-01-05
  • Peter

    Peter - 2007-02-02

    Hi all,

    I am running AWStats from a Windows XP commandline, and found a weird problem. When trying to create old reports (using the -month and -year parameters) I ways got reports for the current month (but the indicated year). That is, using -month=05 year=2005 would generate a report for 02-2005 if it is currently februari (02).

    I turned on debugging and found the following weirdness:

    • Commandline: perl awstats.pl -config=husbanken -output -month=01 -year=2006 -staticlinks -debug=99 > debug2.html
    • Debug text: QUERY_STRING=config=husbanken&month=01&year=2006&staticlinks&debug=99 (note the "&" instead of just "&" before "month")
    • In this case, report for the indicated year but current month is generated.

    • Commandline: perl awstats.pl -config=husbanken -output -year=2006 -month=01 -staticlinks -debug=99 > debug2.html

    • Debug text: QUERY_STRING=config=husbanken&year=2006&month=01&staticlinks&debug=99 (note the "&" instead of just "&" before "year")
    • In this case, report for the indicated month but current year is generated.

    Any remarks ?

    Thanks, Peter

     

Log in to post a comment.