#!/bin/sh
#
#
#
TMP=/tmp/lbbs-expire$$

for i in 1 2 3 4 5 6 7 8 9 OPPS
do
   if /usr/lbbs/bin/aux/expire 2>&1 &>$TMP
   then
# Vixie cron will pick this up for me...
      cat $TMP
#      cat $TMP | mail lbbs
      break
   else
      if [ $i = "OPPS" ]
      then
         cat <<!EOF!

The LBBS expire utility has not been able to sucessfully run.
!EOF!
         break
      else
         sleep 300
      fi
   fi
done

rm $TMP

exit 1
