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: Deleting files from O/S older than 6 hours

Re: Deleting files from O/S older than 6 hours

From: Peter van Rijn <petervanrijn_at_gmail.com>
Date: Wed, 28 Nov 2007 13:34:15 +0100
Message-ID: <474D6047.5000301@gmail.com>


Remigiusz Sokolowski schreef:

> Ajay Thotangare wrote:

>> Hi,
>>
>> I am using following command to delete files from o/s older than 24
>> hours.
>> /usr/bin/find /u01/log/*.log -mtime +0 -exec ls -l {} \;
>>
>> Is there any way I can delete files older than 6 hours. I am using
>> HP-UNIX. I tried using
>> /usr/bin/find /u01/log/*.log -mtime +0.4 -exec ls -l {} \;
>> Above command does not work.
>>
> may be there is option -newer on HP-UX (I don't have any such box 
> here) - if so, one can touch fake file with proper time
> Then find will operate on files newer than fake file

Yes, this works on HP-UX.

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Nov 28 2007 - 06:34:15 CST

Original text of this message

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