atime, ctime and mtime

From: Chakrapani <kcpani_at_cob.cummins.com>
Date: Mon, 20 Apr 1998 10:07:26 -0400

Hi all,
  I have a procedure to delete all files in a directory which is not
accessed by any user for more than 15 days.
  I run from the cron the following command every night:

   find /pcsaserv/common -atime +16 -exec rm {} \;

  But everynight I perform a vdump on all directories on my system and
that seems to change the access time on all files. Because of this my
find command to remove all the files which are accessed before 16 days
is not able to perform its job well.

  I may not be able to use ctime or mtime options because many just
access files in the directory, but they may not modify or change.

  Can anyone suggest any other way to do this.
                Thanks, Chakra
Received on Mon Apr 20 1998 - 17:13:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT