home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3.4.17 [SPARC, PA-RISC] / nextstep33_risc.iso / private / etc / uucp / UUAIDS / uu.daily < prev    next >
Text File  |  1995-02-05  |  1KB  |  37 lines

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