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_at_slackinc.com]
Sent: Thursday, July 18, 2002 4:48 PM
To: 'tru64-unix-managers_at_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_at_slackinc.com
ph:856.848.1000 Ext 220
SLACK Incorporated - An innovative information, education and management
company
http://www.slackinc.com
Received on Fri Jul 19 2002 - 14:27:17 NZST