From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: George Gallen Newsgroups: gmane.os.tru64.managers Subject: Summary: Using find to find files that are more than 1 HOUR old.. . Date: Fri, 19 Jul 2002 10:28:23 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <90A3BA28098BD411AD9A0001FA7E505503455807@smtp.slackinc.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1027089232 16221 127.0.0.1 (19 Jul 2002 14:33:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2002 14:33:52 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17VYpK-0004DW-00 for ; Fri, 19 Jul 2002 16:33:50 +0200 Original-Received: (qmail 11055 invoked by uid 5); 19 Jul 2002 14:27:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11047 invoked from network); 19 Jul 2002 14:27:13 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 19 Jul 2002 14:27:13 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZI006T32T9GB@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 19 Jul 2002 10:27:13 -0400 (EDT) Original-Received: from poison.slackinc.com (poison.slackinc.com [12.35.245.16]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GZI00DGV2T5FT@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 19 Jul 2002 10:27:06 -0400 (EDT) Original-Received: by smtp.slackinc.com with Internet Mail Service (5.5.2655.55) id ; Fri, 19 Jul 2002 10:28:31 -0400 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:1020 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1020 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