|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: daily,v 1.23 1998/03/07 19:33:23 millert Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: daily,v 1.24 1998/06/30 23:08:52 deraadt Exp $ |
|
|
# From: @(#)daily 8.2 (Berkeley) 1/25/94 |
|
|
# From: @(#)daily 8.2 (Berkeley) 1/25/94 |
|
|
# |
|
|
# |
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin |
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin |
|
@ -52,13 +52,13 @@ if [ -d /var/rwho -a ! -h /var/rwho ] ; then |
|
|
find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } |
|
|
find . ! -name . -mtime +7 -execdir rm -f -- {} \; ; } |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
find / \( ! -fstype local -o -fstype rdonly -o -fstype fdesc \ |
|
|
|
|
|
-o -fstype kernfs -o -fstype procfs \) -a -prune -o \ |
|
|
|
|
|
-name 'lost+found' -a -prune -o \ |
|
|
|
|
|
-name '*.core' -a -print -o \ |
|
|
|
|
|
\( -name '[#,]*' -o -name '.#*' -o -name a.out \ |
|
|
|
|
|
-o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ |
|
|
|
|
|
-a -atime +3 -a -execdir rm -f -- {} \; -a -print > $TMP |
|
|
|
|
|
|
|
|
#find / \( ! -fstype local -o -fstype rdonly -o -fstype fdesc \ |
|
|
|
|
|
# -o -fstype kernfs -o -fstype procfs \) -a -prune -o \ |
|
|
|
|
|
# -name 'lost+found' -a -prune -o \ |
|
|
|
|
|
# -name '*.core' -a -print -o \ |
|
|
|
|
|
# \( -name '[#,]*' -o -name '.#*' -o -name a.out \ |
|
|
|
|
|
# -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ |
|
|
|
|
|
# -a -atime +3 -a -execdir rm -f -- {} \; -a -print > $TMP |
|
|
|
|
|
|
|
|
if egrep -q '\.core$' $TMP; then |
|
|
if egrep -q '\.core$' $TMP; then |
|
|
echo "" |
|
|
echo "" |
|
|