#sccs "@(#)fndetc:cleanup.wk 1.7" # 'perform once per week, Sunday at 0530 hours' # 'tell the status manager to empty the file /usr/adm/cronlog' ps -e | grep "smgr" | \ while read PID TTY TIME COMMAND do if [ "$COMMAND" = "smgr" ] then kill -17 $PID fi done rm /usr/adm/sulog find / -name core -exec rm {} \; # # clean up files for lp request and remote printing. # find /usr/spool/lp/request -type f -name "[drt]*-*" -atime +2 -exec rm -f {} \; rm /usr/spool/uucppublic/*.: rm /usr/spool/uucppublic/*.g