#!/bin/csh -f

set lastmonth = `ls -l ~/.persdots/monthlycheck | sed 's+.* \([A-Z]..\) .*+\1+'` 

if (`date +%m` > `~rig/bin/monthno $lastmonth`) then
#  echo "Pay rent." | mail -s "Pay rent" rig
endif

touch ~/.persdots/monthlycheck
