<?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 Creating a script file. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359411#M193771</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to creating a script file to delete files inside a folder (ArchiveLog), which maintain the thrahold for 14days.&lt;BR /&gt;&lt;BR /&gt;Please help, I would rewards points for those who help. Thank very much.&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Aug 2004 20:26:22 GMT</pubDate>
    <dc:creator>ckchai</dc:creator>
    <dc:date>2004-08-17T20:26:22Z</dc:date>
    <item>
      <title>Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359411#M193771</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to creating a script file to delete files inside a folder (ArchiveLog), which maintain the thrahold for 14days.&lt;BR /&gt;&lt;BR /&gt;Please help, I would rewards points for those who help. Thank very much.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Aug 2004 20:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359411#M193771</guid>
      <dc:creator>ckchai</dc:creator>
      <dc:date>2004-08-17T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359412#M193772</link>
      <description>Assuming your filesystem mount point name is /ArchiveLog then this should to the trick. You could also automate this by placing it within cron.&lt;BR /&gt;&lt;BR /&gt;find /ArchiveLog -mtime 14 -print -exec rm {} \;</description>
      <pubDate>Tue, 17 Aug 2004 20:49:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359412#M193772</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-08-17T20:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359413#M193773</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can list the files to check them as&lt;BR /&gt;find /path_name -name "*log*" -mtime +14 -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;And to delete them&lt;BR /&gt;&lt;BR /&gt;find /path_name -name "*log*" -mtime +14 -exec rm {} \;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Aug 2004 23:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359413#M193773</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2004-08-17T23:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359414#M193774</link>
      <description>Deleting is fine. &lt;BR /&gt;&lt;BR /&gt;I hope you have backup policy for taking online/offline backups and the backup of the archive files so deleted.&lt;BR /&gt;&lt;BR /&gt;Archive files will be needed in case of any complete/point-in-time recovery.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Wed, 18 Aug 2004 00:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359414#M193774</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-08-18T00:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359415#M193775</link>
      <description>&lt;BR /&gt;You can do it as,&lt;BR /&gt;&lt;BR /&gt; find /&lt;DIR&gt;/ -name "*" -mtime 14 -exec ll {} \; -exec rm -i {} \;&lt;BR /&gt;&lt;BR /&gt; Which gives the full file informations and as well as user input y / n to delete files too.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Muthu&lt;/DIR&gt;</description>
      <pubDate>Wed, 18 Aug 2004 00:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359415#M193775</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-08-18T00:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359416#M193776</link>
      <description>find &lt;PATH_ARCHIVE_LOG_DIR&gt; -name "*" -type f -mtime 14 -exec rm -i {} \;&lt;BR /&gt;&lt;BR /&gt;It will delete only the files { thru -type f option }residing in the specified directory which are havg threshold as 14 days with user confirmation for deletion.&lt;BR /&gt;&lt;BR /&gt;&lt;/PATH_ARCHIVE_LOG_DIR&gt;</description>
      <pubDate>Wed, 18 Aug 2004 01:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359416#M193776</guid>
      <dc:creator>Saravanan_11</dc:creator>
      <dc:date>2004-08-18T01:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a script file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359417#M193777</link>
      <description>thanks you very much.&lt;BR /&gt;Have a nice day.</description>
      <pubDate>Tue, 24 Aug 2004 03:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-script-file/m-p/3359417#M193777</guid>
      <dc:creator>ckchai</dc:creator>
      <dc:date>2004-08-24T03:11:31Z</dc:date>
    </item>
  </channel>
</rss>

