RE : OT: find command on rhel4 not working with mtime
- From: Marius Raicu <mariu200@xxxxxxxxx>
- To: sperry@xxxxxxxxxxx, oracle-l <oracle-l@xxxxxxxxxxxxx>
- Date: Wed, 12 Jul 2006 16:21:11 +0200 (CEST)
Hi,
I'm on RHEL3 and I use something like this, which works
/usr/bin/find /u08/bla/bla/*.* -mtime +31 -print -exec /bin/rm {} \;
hth
Steve Perry <sperry@xxxxxxxxxxx> a écrit : Didn't know if anyone else has run
across this, but I spent 1.5 hours
trying to get a tried and true find command to work on RHEL4 (32-bit)
without success.
I wanted to delete the audit files in $ORACLE_BASE/admin//
adump that were older than 60 days. It shouldn't be rocket science
or so I thought.
the command was
find $ORACLE_BASE/admin//adump -name "ora*.aud" -mtime +60
It was supposed to have " -exec rm {} \;", but I never got that far
because it wouldn't return any files.
i could use -60 and it would return files less than 60 days, but "+"
failed to return anything. I tried ctime as well, but nothing.
man and google didn't return anything.
Anybody run across this before?
I thought I'd ask before writing a perl script. Does anyone have any
one-line perl scripts before I write a longer one?
Thanks,
steve
--
http://www.freelists.org/webpage/oracle-l
Regards,
Marius
---------------------------------
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
interface révolutionnaire.
- Follow-Ups:
- Re: RE : OT: find command on rhel4 not working with mtime
- From: Jared Still
- References:
- OT: find command on rhel4 not working with mtime
- From: Steve Perry
Other related posts:
- » RE : OT: find command on rhel4 not working with mtime
- » Re: RE : OT: find command on rhel4 not working with mtime
- Re: RE : OT: find command on rhel4 not working with mtime
- From: Jared Still
- OT: find command on rhel4 not working with mtime
- From: Steve Perry