1*79e29df0Sbostic: Daily uucp script 2*79e29df0Sbostic: assumes you have subdirectories. 3*79e29df0Sbostic: If you do not have them, delete the '-d....' options below. 4*79e29df0Sbostic: someone should use shell variables to do this 5*79e29df0Sbostic: Much better to have subdirectories, however. 6*79e29df0SbosticPATH=:/bin:/usr/bin:/usr/ucb 7*79e29df0Sbosticcd /usr/lib/uucp 8*79e29df0Sbostic# 9*79e29df0Sbosticumask 2 10*79e29df0Sbosticdeadtime=`expr 24 \* 7` 11*79e29df0Sbosticcd /usr/lib/uucp 12*79e29df0Sbostic( 13*79e29df0Sbosticuuclean -pLTMP. -n24 14*79e29df0Sbosticuuclean -p/usr/spool/uucp/STST -n24 15*79e29df0Sbosticuuclean -d/usr/spool/uucp/AUDIT -n48 16*79e29df0Sbosticuuclean -d/usr/spool/uucp/TM. -pTM. -n24 17*79e29df0Sbosticuuclean -d/usr/spool/uucp/XTMP -n24 18*79e29df0Sbosticuuclean -d/usr/spool/uucp/X. -pX. -n$deadtime 19*79e29df0Sbosticuuclean -d/usr/spool/uucp/C. -pC. -n$deadtime 20*79e29df0Sbosticuuclean -d/usr/spool/uucp/D. -pD. -n$deadtime 21*79e29df0Sbosticuuclean -d/usr/spool/uucp/D.`uuname -l` -pD. -n$deadtime 22*79e29df0Sbosticuuclean -d/usr/spool/uucp/D.`uuname -l`X -pD. -n$deadtime 23*79e29df0Sbostic) >/dev/null 2>&1 24*79e29df0Sbostic 25*79e29df0Sbostic/usr/lib/uucp/uucpsummary | /usr/ucb/Mail -s "UUCP Summary" uucplist 26*79e29df0Sbosticcd /usr/spool/uucp 27*79e29df0Sbostic# 28*79e29df0Sbostic# Ma Bell's uudemon.day saves a week's worth of log file information; 29*79e29df0Sbostic# obviously, the site that came up with that never ran netnews. 30*79e29df0Sbostic# 31*79e29df0Sbosticmv LOGFILE Log-DAY 32*79e29df0Sbosticmv SYSLOG Syslog-DAY 33*79e29df0Sbostic# remove old junk from our public directory 34*79e29df0Sbosticcd /usr/spool/uucppublic 35*79e29df0Sbosticfind . -type f -mtime +30 -exec rm -f {} \; 36