version 1.30, 2000/04/28 00:47:55 |
version 1.31, 2000/04/29 18:45:58 |
|
|
echo "Removing scratch and junk files:" |
echo "Removing scratch and junk files:" |
if [ -d /tmp -a ! -h /tmp ]; then |
if [ -d /tmp -a ! -h /tmp ]; then |
cd /tmp && { |
cd /tmp && { |
find -x . -name 'ssh-*' -prune -o -type f -atime +3 -execdir rm -f -- {} \; |
find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ |
|
-type f -atime +3 -execdir rm -f -- {} \; |
find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ |
find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ |
>/dev/null 2>&1; } |
>/dev/null 2>&1; } |
fi |
fi |
|
|
if [ -d /var/tmp -a ! -h /var/tmp ]; then |
if [ -d /var/tmp -a ! -h /var/tmp ]; then |
cd /var/tmp && { |
cd /var/tmp && { |
find -x . ! -name . ! -type d -atime +7 -execdir rm -f -- {} \; |
find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ |
|
! -type d -atime +7 -execdir rm -f -- {} \; |
find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ |
find -x . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \ |
>/dev/null 2>&1; } |
>/dev/null 2>&1; } |
fi |
fi |