home *** CD-ROM | disk | FTP | other *** search
- : /bin/sh
-
- # EMPTYTRASH
- # Executed from root crontab file every night.
- # It finds all files in all users .traschan directories and gets
- # rid of any file that has not been accessed or modified for more
- # than 7 days. Note: this works in conjunction with can. can
- # changes modifies the access time for a file when it moves the
- # file to the user's .trashcan diretory.
-
- find /cd441/*/.trashcan -atime +7 -print | while read FILE
- do
- # echo $FILE
- rm $FILE
- done
-