SUMMARY: Problems with find command

From: roy.ramberg@geologi.uio.no
Date: Mon Nov 10 1997 - 03:00:59 CST


Hi All and thanks for quick response!

I had problems with find and received many
answers but the correct answer was provided by
Matthew Stier <Matthew.Stier@tddny.fujitsu.com>.

My command was correct, but I didn't count the hours
correctly. I have now put this in my crontab files
which executes every night and it has saved my night.

Others who gave answers and interesting hints were:
------------------
Gianluca Rotoni <gianluca@tell.ascom.ch>
Jim Harmon <jharmon@telecnnct.com>
Tim Pointing <Tim.Pointing@dciem.dnd.ca>
mike@trdlnk.com (Michael Sullivan)
Deepak D Wilson <Deepak_D_Wilson@notes.seagate.com>
Jeff Graham <demit@best.com>
Max Trummer <max@fv.com>
Karl E. Vogel" <vogelke@c17mis.region2.wpafb.af.mil>
Ray Trzaska <rtrzaska@uk.mdis.com>
David Thorburn-Gundlach <david@bae.uga.edu>

Original question:
-------------------
> Hi!
>
> I urgently need to get a clean up script up and
> running to clear out files in /var/tmp of a certain
> kind and on a certain basis. I do a /bin/ls -l on
> some files and they give me.
>
> -rwx------ 1 joranger mn 36811161 Nov 2 14:25 pcgeo7.a002lp
> -rwx------ 1 joranger mn 32893637 Nov 2 17:11 pcgeo7.a003w_
> -rwx------ 1 joranger mn 36811140 Nov 2 14:35 pcgeo7.b002lp
> -rwx------ 1 joranger mn 32893637 Nov 2 17:16 pcgeo7.b003w_
>
> When I do a (for now): find . -name 'pcgeo7.*' -mtime +1 -print
> I get : ./pcgeo7.a002lp and ./pcgeo7.b002lp
>
> Why don't I get the other 2 files which was last modified more
> than 1 day ago?? I have tried -ctime which gives the same result
> and then -atime which gives nothing.
>
> I need this script because this area fills up fast even though
> I have given it over 1GB for now.
>

Regards
Roy
---------------------------------------------------
Roy E.Ramberg Telefon : +47 22856639
Systems Manager Telefax : +47 22854215
Department of Geology E-Mail : royr@geologi.uio.no
Postboks 1047 Blindern
N-0316 OSLO, Norway
---------------------------------------------------



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:08 CDT