Re: [BPL14][Win98] Purgeplay.c

From: Ron Cole (rcole@ezy.net)
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
>it.

I put this right before the syslog renaming stuff.

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

Replace "lib/etc/players.astro" with the path and name of your pfile.  This
also assumes that your purgeplay creates "players.new".  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.


Ron


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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