version 1.36, 2001/09/09 01:07:31 |
version 1.37, 2001/10/24 11:32:13 |
|
|
echo "Removing scratch and junk files:" |
echo "Removing scratch and junk files:" |
if [ -d /tmp -a ! -L /tmp ]; then |
if [ -d /tmp -a ! -L /tmp ]; then |
cd /tmp && { |
cd /tmp && { |
find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ |
find -x . \( -path './ssh-*' -o -path './.X11-unix' \) -prune -o \ |
-type f -atime +3 -execdir rm -f -- {} \; |
-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; } |
|
|
|
|
if [ -d /var/tmp -a ! -L /var/tmp ]; then |
if [ -d /var/tmp -a ! -L /var/tmp ]; then |
cd /var/tmp && { |
cd /var/tmp && { |
find -x . \( -name 'ssh-*' -o -name '.X11-unix' \) -prune -o \ |
find -x . \( -path './ssh-*' -o -path './.X11-unix' \) -prune -o \ |
! -type d -atime +7 -execdir rm -f -- {} \; |
! -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; } |