5 0 * * * twidge dmsend paulkoan "$(cat /path/to/p2pool/log | grep $(date -d '1 day ago' +%Y-%m-%d) | grep -c SHARE) Shares, $(cat /path/to/p2pool/log | grep $(date -d '1 day ago' +%Y-%m-%d) | grep -c BLOCK) Blocks"
Hmm, seems this doesn't work because p2pool cycles the log at a frequency greater than once a day. Does anyone know how to lengthen the time p2pool keeps logs?
Hmm that's odd, my logs never cycle, but maybe that is windows thing.
It is in the source, in logger.py. But that is fine, I now extract the SHARE|BLOCK lines from the log periodically, and save them into a separate file, and then run the scan against those.