<?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: house keeping script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637158#M676355</link>
    <description>Shalom Johnson,&lt;BR /&gt;&lt;BR /&gt;Very interesting. &lt;BR /&gt;&lt;BR /&gt;Here is a trick.&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;touch -t 200509090900 /tmp/pivotfile&lt;BR /&gt;&lt;BR /&gt;and use find's newer option:&lt;BR /&gt;&lt;BR /&gt;find . type f -newer /tmp/pivotfile&lt;BR /&gt;&lt;BR /&gt;# add -exec mv &lt;SOURCE&gt; &lt;DESTINATION&gt;&lt;BR /&gt;&lt;BR /&gt;Change the names to what you need.&lt;BR /&gt;&lt;BR /&gt;Test thoroughly.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DESTINATION&gt;&lt;/SOURCE&gt;</description>
    <pubDate>Tue, 25 May 2010 13:26:13 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2010-05-25T13:26:13Z</dc:date>
    <item>
      <title>house keeping script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637157#M676354</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Greetings &amp;amp; Good day,&lt;BR /&gt;&lt;BR /&gt;I would like to write to script find files which are has been created past 60 mins and move those files to /var/adm/crash/ora&lt;BR /&gt;&lt;BR /&gt;source folder :-  /oracle/orarchieve&lt;BR /&gt;target folder :- /var/adm/crash/ora&lt;BR /&gt;&lt;BR /&gt;thanks in advance for you kind advice &amp;amp; help&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Johnson</description>
      <pubDate>Tue, 25 May 2010 13:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637157#M676354</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-05-25T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: house keeping script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637158#M676355</link>
      <description>Shalom Johnson,&lt;BR /&gt;&lt;BR /&gt;Very interesting. &lt;BR /&gt;&lt;BR /&gt;Here is a trick.&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;touch -t 200509090900 /tmp/pivotfile&lt;BR /&gt;&lt;BR /&gt;and use find's newer option:&lt;BR /&gt;&lt;BR /&gt;find . type f -newer /tmp/pivotfile&lt;BR /&gt;&lt;BR /&gt;# add -exec mv &lt;SOURCE&gt; &lt;DESTINATION&gt;&lt;BR /&gt;&lt;BR /&gt;Change the names to what you need.&lt;BR /&gt;&lt;BR /&gt;Test thoroughly.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DESTINATION&gt;&lt;/SOURCE&gt;</description>
      <pubDate>Tue, 25 May 2010 13:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637158#M676355</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-05-25T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: house keeping script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637159#M676356</link>
      <description>&lt;!--!*#--&gt;Hi Johnson:&lt;BR /&gt;&lt;BR /&gt;This should meet your needs:&lt;BR /&gt;&lt;BR /&gt;# cat ./mover&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use File::Copy;&lt;BR /&gt;my $srcdir = qq(/oracle/orarchive);&lt;BR /&gt;my $dstdir = qq(/var/adm/crash/ora);&lt;BR /&gt;my @files  = grep( -f &amp;amp;&amp;amp; -M $_ &amp;gt; 3600 / 86400, glob("$srcdir/*") );&lt;BR /&gt;for my $file (@files) {&lt;BR /&gt;    print "Moving $file -&amp;gt; $dstdir\n";&lt;BR /&gt;    move( $file, $dstdir );&lt;BR /&gt;}&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...The value of 3600 represents 60-minutes.  The value of 86400 is the number of seconds in a day.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 May 2010 13:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/house-keeping-script/m-p/4637159#M676356</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-05-25T13:57:23Z</dc:date>
    </item>
  </channel>
</rss>

