Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 (USS@Tek, v1.0) based on 4.3bsd-beta 6/6/85; site tektools.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!tektools!jerryp From: jerryp@tektools.UUCP (Jerry Peek) Newsgroups: net.unix-wizards Subject: Re: file read dates Message-ID: <702@tektools.UUCP> Date: Fri, 31-Jan-86 11:00:32 EST Article-I.D.: tektools.702 Posted: Fri Jan 31 11:00:32 1986 Date-Received: Sun, 2-Feb-86 01:13:55 EST References: <183@magic.ARPA> Reply-To: jerryp@tektools.UUCP (Jerry Peek) Distribution: net Organization: Tektronix, Inc., Beaverton, OR. Lines: 27 In article <183@magic.ARPA> stewart@magic.ARPA (Larry Stewart) writes: > Who looks at file read dates? Do any more-or-less standard Unix > applications look at them? Are they worth the trouble of maintaining? One thing that's done on a lot of Tektronix VAXen (and, I've heard, at a lot of sites other places) is a command like this started by cron: find / \( -name '#*' -o -name ',*' \) -atime +3 -print | xargs rm -f & Late at night, it checks for any files whose names start with a comma or pound sign which haven't been read in three days... and zaps them. So, users who want to make a file "temporary" can "remove" it by adding a comma or pound-sign to the start of the name... but they'll be able to get it back within three days if they change their minds. Our MH mail "rmm" command takes advantage of this, fr' instance. Users have also set up "rm"-like commands that add a comma to the filename and "mv" it into to a "to-be-deleted" directory for "cron" to find. [P.S. I posted this instead of mailing directly to Larry because I thought some sites might not have heard of the scheme. It's pretty handy.] --Jerry Peek, Tektronix, Inc. US Mail: MS 74-222, P.O. Box 500, Beaverton, OR 97077 uucp: {allegra,decvax,hplabs,ihnp4,ucbvax}!tektronix!tektools!jerryp CS,ARPAnet: jerryp%tektools@tektronix.csnet Phone: +1 503 627-1603