<?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 time stamp script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112729#M149102</link>
    <description>Does anyone have a script that will find files&lt;BR /&gt;that are more than 1 hour old and move them to another filesystem????&lt;BR /&gt;&lt;BR /&gt;or how to script it..&lt;BR /&gt;&lt;BR /&gt;thansk&lt;BR /&gt;mike</description>
    <pubDate>Thu, 06 Nov 2003 15:12:45 GMT</pubDate>
    <dc:creator>michael_210</dc:creator>
    <dc:date>2003-11-06T15:12:45Z</dc:date>
    <item>
      <title>time stamp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112729#M149102</link>
      <description>Does anyone have a script that will find files&lt;BR /&gt;that are more than 1 hour old and move them to another filesystem????&lt;BR /&gt;&lt;BR /&gt;or how to script it..&lt;BR /&gt;&lt;BR /&gt;thansk&lt;BR /&gt;mike</description>
      <pubDate>Thu, 06 Nov 2003 15:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112729#M149102</guid>
      <dc:creator>michael_210</dc:creator>
      <dc:date>2003-11-06T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: time stamp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112730#M149103</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;First create a reference file:&lt;BR /&gt;&lt;BR /&gt;touch ref_file -t [[CC]YY]MMDDhhmm[.SS]&lt;BR /&gt;&lt;BR /&gt;Then use the find command:&lt;BR /&gt;&lt;BR /&gt;find /dirname ! -newer ref_file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At least, I think that will work for you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Nov 2003 15:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112730#M149103</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-11-06T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: time stamp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112731#M149104</link>
      <description>You can do it with find command and place the script in a cron job to run it every hour:&lt;BR /&gt;&lt;BR /&gt;# touch test_file&lt;BR /&gt;&lt;BR /&gt;In the script:&lt;BR /&gt;find dir_name -newer test_file -depth | cpio -plmv /destination_dir&lt;BR /&gt;touch test_file&lt;BR /&gt;&lt;BR /&gt;Place this script in crontab. When you run the first time, run it after an hour you created test_file. You can replace the cpio command with mv or cp.</description>
      <pubDate>Thu, 06 Nov 2003 15:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112731#M149104</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-11-06T15:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: time stamp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112732#M149105</link>
      <description>typo .. add option 'd' with cpio:&lt;BR /&gt;&lt;BR /&gt;cpio -pdmv /dest_dir</description>
      <pubDate>Thu, 06 Nov 2003 15:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112732#M149105</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-11-06T15:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: time stamp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112733#M149106</link>
      <description>That did the trick!!  Combined Petes and shiju's responses.  &lt;BR /&gt;thanks!!&lt;BR /&gt;&lt;BR /&gt;(points assigned)&lt;BR /&gt;mike</description>
      <pubDate>Fri, 07 Nov 2003 08:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-stamp-script/m-p/3112733#M149106</guid>
      <dc:creator>michael_210</dc:creator>
      <dc:date>2003-11-07T08:50:10Z</dc:date>
    </item>
  </channel>
</rss>

