X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=stump%2Fetc%2Fposted_log;fp=stump%2Fetc%2Fposted_log;h=0f48c6c1e935e1d0f932a7dc26d24794f32dda69;hb=dba7b54b3cc0c7f2a56ec6da37ac86bc80756b4a;hp=0000000000000000000000000000000000000000;hpb=c976d4ac6f226fe30c69580ddb9acf952b67893e;p=modbot-mtm.git diff --git a/stump/etc/posted_log b/stump/etc/posted_log new file mode 100755 index 0000000..0f48c6c --- /dev/null +++ b/stump/etc/posted_log @@ -0,0 +1,24 @@ +#!/bin/sh + +# This file creates a little .posted_log file in your home +# directory. Runs if activeated by crontab. See your crontab +# file for more details. + +# You may omit this file when initially setting up STUMP. + +( + echo -n `date` "Number of articles: " + grep processApproved < $HOME/Mail/from | wc -l +) >> $HOME/.posted_log + +( +cat << _EOB_ +The information below shows the total number of articles posted +for the last 10 days. The totals start with some date in the past. +What is important is daily differences between totals. + +_EOB_ + +tail $HOME/.posted_log + +)| mail -s "Number of posted Articles" $1