<?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: script help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954243#M46665</link>
    <description>I will re-phrase and submit my question again.</description>
    <pubDate>Mon, 23 Jan 2006 15:09:14 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2006-01-23T15:09:14Z</dc:date>
    <item>
      <title>script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954239#M46661</link>
      <description>Hi all, can you please help me write a script to run in the weekly cron job to archive the prior weeks logs. Thanks and points will definitely be assigned.</description>
      <pubDate>Mon, 23 Jan 2006 12:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954239#M46661</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2006-01-23T12:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954240#M46662</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;add this line to crontab&lt;BR /&gt;&lt;BR /&gt;#crontab -e&lt;BR /&gt;&lt;BR /&gt;0 0 * * 0 cp /path/to/logs/* /path/to/archive&lt;BR /&gt;&lt;BR /&gt;for more information --&amp;gt; man crontab &amp;amp; cp&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 14:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954240#M46662</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-01-23T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954241#M46663</link>
      <description>Thanks, I will be using the find command like such...&lt;BR /&gt;&lt;BR /&gt;find /home/xx/* -type f -mtime +5 -exec gzip {} \;.&lt;BR /&gt;&lt;BR /&gt;This will locate the remove all files over 5 days old. &lt;BR /&gt;&lt;BR /&gt;This will also touch the current days files so what can I do here so it doesn't touch the most current days file.</description>
      <pubDate>Mon, 23 Jan 2006 14:36:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954241#M46663</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2006-01-23T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954242#M46664</link>
      <description>okay, more to this. In /var/log/pgsql/*, I would only like to select the *.log files created in the last 7 days and to gzip them into the single archive for the week. &lt;BR /&gt;&lt;BR /&gt;HOw can this be done.</description>
      <pubDate>Mon, 23 Jan 2006 14:49:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954242#M46664</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2006-01-23T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954243#M46665</link>
      <description>I will re-phrase and submit my question again.</description>
      <pubDate>Mon, 23 Jan 2006 15:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4954243#M46665</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2006-01-23T15:09:14Z</dc:date>
    </item>
  </channel>
</rss>

