Add tinews.pl and some shell scripts to /contrib.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
9b6bf3e194
commit
8c9d450d47
6 changed files with 1535 additions and 2 deletions
9
contrib/dopostingstats.sh
Normal file
9
contrib/dopostingstats.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue