#!/bin/bash
#                       /usr/local/bin/rundog
#  http://crystalfaeries.net/posix/bin/rundog
# celeste:crystalfaery RUNDOG 2016-11-14 03:52:27+00:00
/usr/bin/rawdog -Wuw >> ~/.rawdog/log.txt 2>&1
if [ -s ~/.rawdog/log.txt ]
then
	mail -s rawdog `/usr/bin/whoami` < ~/.rawdog/log.txt && cp /dev/null ~/.rawdog/log.txt
fi
/usr/local/bin/syncrawdog >& /dev/null


syntax highlighted by Code2HTML, v. 0.9.1