Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 24447 invoked from network); 28 Nov 2007 17:28:13 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 28 Nov 2007 17:28:11 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4066C7C89A5;
 Wed, 28 Nov 2007 18:28:08 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 19028-03; Wed, 28 Nov 2007 18:28:08 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AE9667C88C0;
 Wed, 28 Nov 2007 18:28:07 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 28 Nov 2007 17:41:11 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D342F7C5888
 for <oracle-l@freelists.org>; Wed, 28 Nov 2007 17:41:10 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 13281-09 for <oracle-l@freelists.org>;
 Wed, 28 Nov 2007 17:41:10 -0500 (EST)
Received: from n6b.bullet.mail.tp2.yahoo.com (n6b.bullet.mail.tp2.yahoo.com [203.188.202.118])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id A311F7C4C09
 for <oracle-l@freelists.org>; Wed, 28 Nov 2007 17:40:59 -0500 (EST)
Received: from [202.43.196.224] by n6.bullet.mail.tp2.yahoo.com with NNFMP; 28 Nov 2007 22:37:56 -0000
Received: from [217.12.4.215] by t1.bullet.tpe.yahoo.com with NNFMP; 28 Nov 2007 22:37:56 -0000
Received: from [216.252.122.219] by t2.bullet.ukl.yahoo.com with NNFMP; 28 Nov 2007 22:37:55 -0000
Received: from [69.147.84.107] by t4.bullet.sp1.yahoo.com with NNFMP; 28 Nov 2007 22:37:55 -0000
Received: from [127.0.0.1] by omp202.mail.sp1.yahoo.com with NNFMP; 28 Nov 2007 22:37:55 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 594198.88056.bm@omp202.mail.sp1.yahoo.com
Received: (qmail 11394 invoked by uid 60001); 28 Nov 2007 22:37:54 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
  b=PB2VfCDJWtShRua7NR3cO+U1nJU4sVHhqMtLumYtbC2puBK2iae+/bwjVSXbMvZYUBvzxWsQMIwucqKst78DoOfPAzJ8SBHVN8gHWRwIQxRrzJgR3XxGHe0u4oU+n1XjoVM9xqD7PjUXLfWKqdJx0gPPqSPwFs9nGZjJ/F+5oTU=;
X-YMail-OSG: iRM3ueAVM1nqKBnucNTkrOvRhfaFlznYJlfE7yA6WW7XyRWwAiePcQaHkGQXJUqzFtRwieL8rxYUPiyYG9eDp0tMLg--
Received: from [155.72.24.1] by web57507.mail.re1.yahoo.com via HTTP; Wed, 28 Nov 2007 14:37:54 PST
Date: Wed, 28 Nov 2007 14:37:54 -0800 (PST)
From: Ajay Thotangare <ajayoraclel@yahoo.com>
Subject: Re: Deleting files from O/S older than 6 hours
To: Jared Still <jkstill@gmail.com>
Cc: oracle-l@freelists.org
In-Reply-To: <bf46380711281148u5a403097m94320c1b8e68add6@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-587303718-1196289474=:9443"
Message-ID: <806745.9443.qm@web57507.mail.re1.yahoo.com>
X-archive-position: 3558
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: ajayoraclel@yahoo.com
Precedence: normal
Reply-to: ajayoraclel@yahoo.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
--0-587303718-1196289474=:9443
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

HP does not support mmin.
Thanks for good tip with respect to "-exec"  

Jared Still <jkstill@gmail.com> wrote: On Nov 27, 2007 8:16 AM, 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 {} \;

If HP/UX supports the -mmin find argument:
/usr/bin/find /u01/log/*.log -mmin +240 | xargs ls -ld

BTW, please stop using the '-exec' argument unless absolutely necessary.
every file found causes -exec to fork a shell to run ls - very, very, very slow.


-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist


       
---------------------------------
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.
--0-587303718-1196289474=:9443
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

HP does not support mmin.<br>Thanks for good tip with respect to "-exec"  <br><br><b><i>Jared Still &lt;jkstill@gmail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Nov 27, 2007 8:16 AM, Ajay Thotangare <ajayoraclel@yahoo.com> wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am using following command to delete files from o/s older than 24 hours.<br>&gt; /usr/bin/find /u01/log/*.log -mtime +0 -exec ls -l {} \;<br>&gt;<br>&gt; Is there any way I can delete files older than 6 hours. I am using HP-UNIX.<br>&gt; I tried using<br>&gt; /usr/bin/find /u01/log/*.log -mtime +0.4 -exec ls -l {} \;<br><br>If HP/UX supports the -mmin find argument:<br>/usr/bin/find /u01/log/*.log -mmin +240 | xargs ls -ld<br><br>BTW, please stop using the '-exec' argument unless absolutely necessary.<br>every file found causes -exec to fork a shell to run ls - very, very, very slow.<br><br><br>-- <br>Jared
 Still<br>Certifiable Oracle DBA and Part Time Perl Evangelist<br></ajayoraclel@yahoo.com></blockquote><br><p>&#32;
      <hr size=1>Get easy, one-click access to your favorites. 
<a href="http://us.rd.yahoo.com/evt=51443/*http://www.yahoo.com/r/hs"> Make Yahoo! your homepage.</a>


--0-587303718-1196289474=:9443--

--
http://www.freelists.org/webpage/oracle-l


