Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: OT: find command on rhel4 not working with mtime

Re: OT: find command on rhel4 not working with mtime

From: Stefan Knecht <knecht.stefan_at_gmail.com>
Date: Mon, 10 Jul 2006 08:47:30 +0200
Message-Id: <20060710185311.5A382395B74@turing.freelists.org>


I've been having some odd issues with find where the order of the filters mattered.

try to put -mtime before -name and see if that helps

Stefan

On 7/8/06, Steve Perry <sperry_at_sprynet.com> wrote:
>
> 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/<SID>/
> adump that were older than 60 days. It shouldn't be rocket science
> or so I thought.
>
> the command was
>
> find $ORACLE_BASE/admin/<SID>/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
>
>
>

The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you.

--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jul 10 2006 - 01:47:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US