cd /usr/mmdf/log
mv msg.log  omsg.log
mv chan.log ochan.log
mv ph.log   oph.log
mv ph.trn   oph.trn
cp /dev/null msg.log
cp /dev/null chan.log
cp /dev/null ph.log
cp /dev/null ph.trn
chmod 622 msg.log chan.log ph.log ph.trn
/etc/chown mmdf msg.log chan.log ph.log ph.trn
(grep "end msg" omsg.log; grep "[rl]in msg" omsg.log) | \
	sort >> /usa/dcrocker/mmdf.misc/msg.log
ls -ls /usa/dcrocker/mmdf.misc/msg.log
(grep "[rw]msg" ochan.log; grep "end " ochan.log) | \
	sort >> /usa/dcrocker/mmdf.misc/chan.log
ls -ls /usa/dcrocker/mmdf.misc/chan.log
