chiark / gitweb /
0f48c6c1e935e1d0f932a7dc26d24794f32dda69
[modbot-mtm.git] / stump / etc / posted_log
1 #!/bin/sh
2
3 # This file creates a little .posted_log file in your home 
4 # directory. Runs if activeated by crontab. See your crontab
5 # file for more details. 
6
7 # You may omit this file when initially setting up STUMP.
8
9 (
10   echo -n `date` "Number of articles: "
11   grep processApproved < $HOME/Mail/from | wc -l
12 ) >> $HOME/.posted_log
13
14 (
15 cat << _EOB_
16 The information below shows the total number of articles posted
17 for the last 10 days. The totals start with some date in the past.
18 What is important is daily differences between totals.
19
20 _EOB_
21
22 tail $HOME/.posted_log
23
24 )| mail -s "Number of posted Articles" $1