Re: [BPL14][Win98] Purgeplay.c

From: Ron Cole (
Date: 11/28/98

>Is there a way to add purgeplay to the db Boot up?
>If anyone has done it or can help me out in doing so i would appreciate

I put this right before the syslog renaming stuff.

  bin/purgeplay lib/etc/players.astro >> log/purgelog 2>&1
  if [ ! -r ]; then
    echo "Error in purgeplay: $DATE"  >> syslog
    DATE=`date +%y%m%d.%H%M%S`;
    mv lib/etc/players.astro lib/etc/players.$DATE
    gzip lib/etc/players.$DATE
    mv lib/etc/players.astro

Replace "lib/etc/players.astro" with the path and name of your pfile.  This
also assumes that your purgeplay creates "".  We're running an
older version of circle thats been modified quite a bit over the years.
Also, a time-stamped copy of the pfile is created every time this runs, so
you'll want to clean them out periodically.


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST