<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: find + mtime + newer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875194#M399538</link>
    <description>... and should they be not in the same directory, you probably could use ls -Rl</description>
    <pubDate>Mon, 13 Dec 2004 09:37:13 GMT</pubDate>
    <dc:creator>Georg Tresselt</dc:creator>
    <dc:date>2004-12-13T09:37:13Z</dc:date>
    <item>
      <title>find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875192#M399536</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am trying to write a script to gzip archive log files created today, I need it to run every 10 minutes as the database does a lot of processing. &lt;BR /&gt;&lt;BR /&gt;I don't want to gzip the file that it is currently writing to, I have tried using variations of find but I can't get it to do exactly what I want.&lt;BR /&gt;&lt;BR /&gt;find /archivelog -mtime 0 gives me all the files but I would to get all bar the most recent one.&lt;BR /&gt;&lt;BR /&gt;Any ideas on a simple way of doing this??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Barbara</description>
      <pubDate>Mon, 13 Dec 2004 09:25:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875192#M399536</guid>
      <dc:creator>Barbara Flynn_1</dc:creator>
      <dc:date>2004-12-13T09:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875193#M399537</link>
      <description>I assume the log files are all in the same directory. So, I would use a simpe ls -l instead of find.</description>
      <pubDate>Mon, 13 Dec 2004 09:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875193#M399537</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-13T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875194#M399538</link>
      <description>... and should they be not in the same directory, you probably could use ls -Rl</description>
      <pubDate>Mon, 13 Dec 2004 09:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875194#M399538</guid>
      <dc:creator>Georg Tresselt</dc:creator>
      <dc:date>2004-12-13T09:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875195#M399539</link>
      <description>&lt;BR /&gt;Oracle archive logs have a simple numbering convention which you partly specify in the initXXX.ora file.&lt;BR /&gt;&lt;BR /&gt;It should be trivial to remember the last file processed no? In a (shell/perl) loop generate the next file and stat it to check it to compare its mtime, ctime and atime?&lt;BR /&gt;&lt;BR /&gt;How long does it take to write the archive logs? How about every time in the loop you 'touch' a marker file. Then find all files NOT newer than the marker and those are candidates.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 09:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875195#M399539</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-12-13T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875196#M399540</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try the following&lt;BR /&gt;2004 ---year&lt;BR /&gt;12 ----month&lt;BR /&gt;13 -----date&lt;BR /&gt;10 &amp;amp; 11 hour&lt;BR /&gt;10 &amp;amp; 15 min &lt;BR /&gt;touch -t 200412131010 start&lt;BR /&gt;(it will create a file with time stamp 13/12/2004 and time 10.10am)&lt;BR /&gt;&lt;BR /&gt;touch -t 200412131115 stop&lt;BR /&gt;(it will create a file with time stamp 13/12/2004 and time 11.15am)&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;#find /home/hpadm -newer start -a ! -newer stop&lt;BR /&gt;&lt;BR /&gt;this will find the files created between 10.10 and 11.15&lt;BR /&gt;&lt;BR /&gt;by script you can change the time stamp of start and stop files and can be used for finding files between that times.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 09:43:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875196#M399540</guid>
      <dc:creator>bhavin asokan</dc:creator>
      <dc:date>2004-12-13T09:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875197#M399541</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;redo archive logs are written one by one,&lt;BR /&gt;that means only one file is actually written and that is the newest one.&lt;BR /&gt;To find all files without having the actual one you only have to list the dir ordered by last modfication time and skip the first one:&lt;BR /&gt;&lt;BR /&gt;for file in $(ls -t | tail +2)&lt;BR /&gt;do&lt;BR /&gt;gzip $file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 13 Dec 2004 09:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875197#M399541</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2004-12-13T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: find + mtime + newer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875198#M399542</link>
      <description>Thanks, the last two answers helped me a lot!</description>
      <pubDate>Mon, 13 Dec 2004 10:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-mtime-newer/m-p/4875198#M399542</guid>
      <dc:creator>Barbara Flynn_1</dc:creator>
      <dc:date>2004-12-13T10:05:34Z</dc:date>
    </item>
  </channel>
</rss>

