#!/bin/sh

if [ "`find /var/periodic/daily -ctime +2 -print`" ]
then
 /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | sendmail -t && \
 touch /var/periodic/daily
fi


if [ "`find /var/periodic/weekly -ctime +8 -print`" ]
then
 /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | sendmail -t && \
 touch /var/periodic/weekly
fi

if [ "`find /var/periodic/monthly -ctime +32 -print`" ]
then
 /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | sendmail -t && \
 touch /var/periodic/monthly
fi

