#! /bin/csh
#We don't want this command to wind up happening at the same time as the
#entry log, in case we're strapped for memory.  (Especially if we're niced :)
#echo "$$" >> ../.procs

cd /home/petebre/mymud/lp312/mudlib

/bin/rm /home/petebre/mymud/lp312/mudlib/log/mizan.datalogger*

set nmush=`/bin/ps ax | /bin/grep "sleep 901" | /usr/bin/wc -l`
if ($nmush > 1) then
	echo List already active.
	exit 0
endif
set nmush=`/bin/ps ax | /bin/grep "sleep 7272" | /usr/bin/wc -l`
if ($nmush > 1) then
      echo list already active.
       exit 0
endif
cd /home/petebre/mymud/lp312/mudlib
/home/petebre/mymud/lp312/mudlib/KILL
rm /home/petebre/mymud/lp312/mudlib/KILL

#sleep 901
#while (1)
#sort_level > SORT_LEVEL
echo 'SORT-LEVEL---*****'
/home/petebre/mymud/lp312/mudlib/sort_level > /home/petebre/mymud/lp312/mudlib/SORT_LEVEL
echo 'SORT-LEVEL-DONE--SORT--WIZ****'
/home/petebre/mymud/lp312/mudlib/sort_wiz > /home/petebre/mymud/lp312/mudlib/SORT_WIZ
echo 'SORT-WIZ-DONE--copy-LEVEL****'
echo '<pre>' > /home/petebre/www/site/players/playersContent2.html
cat /home/petebre/mymud/lp312/mudlib/SORT_LEVEL >> /home/petebre/www/site/players/playersContent2.html
chmod 644 /home/petebre/www/site/players/playersContent2.html
echo 'copy-LEVEL-done--copy-player-news****'
echo '<pre>' > /home/petebre/www/site/players/playersNews.html
cat /home/petebre/mymud/lp312/mudlib/NEWS >> /home/petebre/www/site/players/playersNews.html
chmod 644 /home/petebre/www/site/players/playersNews.html
echo 'copy-player-news-done---copy-wizardlist--*****'
echo '<pre>' > /home/petebre/www/site/wizards/wizardsContent2.html
cat /home/petebre/mymud/lp312/mudlib/SORT_WIZ >> /home/petebre/www/site/wizards/wizardsContent2.html
chmod 644 /home/petebre/www/site/wizards/wizardsContent2.html
echo 'copy-wizardlist-done****'
#rm /home/petebre/mymud/lp312/mudlib/lpmud.log
#rm /home/petebre/mymud/lp312/mudlib/debug.log
#sleep 7272
#end
exit
