Well it started out manual. But now its totally automated.
Code:
cd /home/nav/dominions3/savedgames/NaV/
TYMR=`head -1 NaV.cfg`
RMDR=`echo $TYMR-9|bc`
# wipe out previous at commands
atrm `atq |cut -f1`
# set new at commands for forced host and for the reminders
ls -l ftherlnd |while read n n n n n DAYT TYME FYLE
do
FORCE=$TYME" "$DAYT" + "$TYMR" hours "
REMIND=$TYME" "$DAYT" + "$RMDR" hours "
at -f /home/nav/bin/32hours.sh -v $FORCE
at -f /home/nav/bin/reminders.sh -v $REMIND
done
cd -
Seems to be correct. Keep in mind that the hours-till-hosting has been changed frequently.
Even in this turn. Presently its set to 80 hours.