Commit | Line | Data |
---|---|---|
d01a9328 C |
1 | #! /bin/sh - |
2 | echo "Subject: weekly run output" | |
3 | ||
4 | #echo "" | |
5 | #echo "Removing old .o files:" | |
6 | #find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \; | |
7 | ||
8 | echo "" | |
9 | echo "Cleaning up UUCP:" | |
10 | su uucp << EOF | |
11 | sh /usr/lib/uucp/clean.weekly | |
12 | EOF | |
13 | ||
14 | echo "" | |
15 | echo "Rotating messages:" | |
16 | cd /usr/adm | |
17 | mv messages.2 messages.3 | |
18 | mv messages.1 messages.2 | |
19 | mv messages.0 messages.1 | |
20 | mv messages messages.0 | |
21 | cp /dev/null messages | |
22 | chmod 644 messages | |
23 | kill -1 `cat /etc/syslog.pid` | |
24 | cd / | |
25 | ||
26 | echo "" | |
27 | echo "Rebuilding catman:" | |
28 | /etc/catman | |
29 | ||
30 | echo "" | |
31 | echo "Rebuilding find database:" | |
32 | su nobody << EOF | |
33 | /usr/lib/find/updatedb | |
34 | EOF |