Path: utzoo!attcan!uunet!tektronix!percival!qiclab!sopwith!snoopy From: snoopy@sopwith.UUCP (Snoopy) Newsgroups: comp.mail.mh Subject: atime vs. mtime (was: Re: # signs in inbox) Message-ID: <78@sopwith.UUCP> Date: 28 Dec 88 20:24:13 GMT References: <8812011831.aa18248@ICS.UCI.EDU> <8812021334.AA04237@PacRat.NPAC.syr.edu> Reply-To: snoopy@sopwith.UUCP (Snoopy) Organization: The Daisy Hill Puppy Farm Lines: 16 In article <8812021334.AA04237@PacRat.NPAC.syr.edu> jerryp@PACRAT.NPAC.SYR.EDU (Jerry Peek) writes: | 45 3 * * * find / -name "[,#]*" -type f -atime +7 -print | xargs rm -f | |Once a day (at 3:45 AM) it searches the filesystem for files whose name |starts with "#" or "," and which haven't been read or written in 7 days. |It removes those files. Under UTek, and perhaps other systems, writing to a file does not update the atime. This cron entry would remove files written less than 7 days ago as long as they had not been read for 7 days. _____ /_____\ Snoopy /_______\ |___| tektronix!tekecs!sopwith!snoopy |___| sun!nosun!illian!sopwith!snoopy