[Typo3] awstat statistc update via cron ?

Christian Grams info at harlekin-edv.de
Sat Oct 8 07:49:18 CEST 2005


> Hi.

> On 06.10.2005 11:36 Christian Leicht wrote:
>> Hello, is it possible to update the statistk via cron ?
>> 
>> Whitch "Link" can i use for that ?
>> 

> This script does the job on my server:

> #!/bin/sh
> #
> # Update AWstats via cli, cron, whatever.
> #
> export AWS_LANG=default
> export AWS_DOMAIN=www.example.com
> export AWS_DOMAINS=www.example.com
> export AWS_LOGFILE=/path/to/apache_log
> export GATEWAY_INTERFACE=
> export AWS_DIR=./
> export AWS_ICON_DIR=./icon/
> export
> AWS_CACHE_DIR=/path/to/typo3_directory/.awstats-data/www.example.com/
> export AWS_WRAPPER=index.php
> export AWS_CSS=awstats-11px.css
> export AWS_BGCOLOR=#FFFFFF
> export AWS_TBT_BGCOLOR=#ABBBB4
> export AWS_TB_BGCOLOR=#D9D5C9
> export AWS_TB_COLOR=#cfcbbf
> export AWS_TBR_BGCOLOR=#e8e4d8
> /path/to/typo3_directory/typo3conf/ext/cc_awstats/mod1/awstats.pl
> -config=www.example.com -output -update=1

Using this as a sh script i get the following as an error message:

# ./awstats.cron.sh
Can't return outside a subroutine at /..../site/typo3conf/ext/cc_awstats/awstats/awstats.pl line 4.
./awstats.cron.sh: line 22: -config=www.sitename.de: command not found

Idea? .. and thanks for sharing your script!!

-- 
Harlekin's-EDV
Christian Grams
Mittelstrasse 18
34277 Fuldabrück
GERMANY
--------------------------------
Tel.: +49 561 8203156
Fax : +49 561 8203155
e-Mail: info at harlekin-edv.de
Web   : www.harlekin-edv.de
--------------------------------
e-Mail Disclaimer: http://www.harlekin-edv.de/email/email.html
--------------------------------
PGP auf Anfrage / on request
--------------------------------




More information about the TYPO3-english mailing list