10 lines
545 B
Bash
10 lines
545 B
Bash
|
#!/bin/bash
|
||
|
# installation path is /srv/newsstats/, please adjust accordingly
|
||
|
if [[ $1 =~ [0-9]{4}-[0-9]{2} ]]; then
|
||
|
/srv/newsstats/bin/groupstats.pl --nocomments --sums --format dump --month $1 | /srv/newsstats/bin/postingstats.pl --month $1 | /srv/newsstats/contrib/tinews.pl -X -Y
|
||
|
/srv/newsstats/bin/cliservstats.pl -t server --nocomments --sums --format dump --month $1 | /srv/newsstats/bin/postingstats.pl -t server --month $1 | /srv/newsstats/contrib/tinews.pl -X -Y
|
||
|
else
|
||
|
echo 'Input error, please use dopostingstats.sh YYYY-MM'
|
||
|
fi
|
||
|
|