3 ## Copyright (c) 2012, The Trusted Domain Project. All rights reserved.
5 ## opendmarc-importstats -- import opendmarc output to MySQL
7 ## This is intended to be used via a crontab. If import is successful,
8 ## this code exits quietly so there's no output. If it fails, it does
9 ## "ls -l" on the temporary file, so that cron generates mail to whever
13 statsdb
="/var/tmp/dmarc.dat"
14 # OPENDMARC_PASSWORD="password"; export OPENDMARC_PASSWORD
18 mv $statsdb ${statsdb}.OLD.$$
20 if opendmarc-import
< ${statsdb}.OLD.$$
24 ls -l ${statsdb}.OLD.$$