#! /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 /user3/nirvana/mymud/lp312/mudlib
set nmush=`/bin/ps -ax | /bin/grep "sleep 901" | /usr/ucb/wc -l`
if ($nmush > 1) then
	echo List already active.
	exit 0
endif
set nmush=`/bin/ps -ax | /bin/grep "sleep 7272" | /usr/ucb/wc -l`
if ($nmush > 1) then
      echo list already active.
       exit 0
endif
#set isat=`/bin/ls /usr/spool/at/*0511* | /usr/ucb/wc -l`
#if ($isat < 1) then
#at -c 0511 List_n_Clean
#endif
cd /user3/nirvana/mymud/lp312/mudlib
/user3/nirvana/mymud/lp312/mudlib/KILL
rm /user3/nirvana/mymud/lp312/mudlib/KILL

sleep 901
while (1)
#sort_level > SORT_LEVEL
/user3/nirvana/mymud/lp312/mudlib/sort_level > /user3/nirvana/mymud/lp312/mudlib/SORT_LEVEL
rm /user3/nirvana/mymud/lp312/mudlib/lpmud.log
rm /user3/nirvana/mymud/lp312/mudlib/debug.log
tail /private/adm/messages > MESS
rcp -p MESS peterson@ig219a.iit.edu:/usr1/people/peterson/nirvana
rm MESS
sleep 7272
end
