Summary: Using find to find files that are more than 1 HOUR old.. .

From: George Gallen (ggallen@slackinc.com)
Date: Fri Jul 19 2002 - 10:28:23 EDT


The consensus has been that.

1. Digital Unix's find can not check less than a day
2. To use -newer option of find against a touched file one hour old
   a. Use touch to make a file 1 hour old
   b. or touch the file after the script runs, with cron every
      hour, so the next run through, the file will be one hour old
3. Use the GNU version of find, which allows for checks of minutes
4. write a program to check the file and/or delete it.

I will probably go with option#4, only because there are a number
of filenames I'm searching for, but I like option#2 as well.

Thanks for the replies.

George

-----Original Message-----
From: George Gallen [mailto:ggallen@slackinc.com]
Sent: Thursday, July 18, 2002 4:48 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: Using find to find files that are more than 1 HOUR old...

Can find be used to do this? I only saw that atime/ctime/mtime all reference
days, I'm
looking to clear out some files on an hourly basis.

Thanks
George

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220

SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:46 EDT