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