* Summary: Using find to find files that are more than 1 HOUR old.. .
@ 2002-07-19 14:28 George Gallen
0 siblings, 0 replies; only message in thread
From: George Gallen @ 2002-07-19 14:28 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-19 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-19 14:28 Summary: Using find to find files that are more than 1 HOUR old.. George Gallen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox