<?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: Remove older than 2 weeks in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046486#M29544</link>
    <description>Thank you James and owivan... I really appreciate your help. I just setup in cron. Thanks again.</description>
    <pubDate>Mon, 30 Jul 2007 12:40:56 GMT</pubDate>
    <dc:creator>Qcheck</dc:creator>
    <dc:date>2007-07-30T12:40:56Z</dc:date>
    <item>
      <title>Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046483#M29541</link>
      <description>How can I schedule the cron job where it purges the /tmp directory files older than two weeks? &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 30 Jul 2007 10:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046483#M29541</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2007-07-30T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046484#M29542</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;something like that:&lt;BR /&gt;find /tmp -mtime +14 -exec rm  {}\;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 30 Jul 2007 11:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046484#M29542</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2007-07-30T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046485#M29543</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Run this :&lt;BR /&gt;&lt;BR /&gt;# find /tmp -type f -mtime +14 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;This will remove *files* from the '/tmp' directory that are older than 14-days based upon their last-modified timestamp ('mtime').&lt;BR /&gt;&lt;BR /&gt;To create a crontab entry to run at 23:30 hours every day, add this to your crontab:&lt;BR /&gt;&lt;BR /&gt;# 30 23 * * * find /tmp -type f -mtime +14 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 30 Jul 2007 11:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046485#M29543</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-30T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046486#M29544</link>
      <description>Thank you James and owivan... I really appreciate your help. I just setup in cron. Thanks again.</description>
      <pubDate>Mon, 30 Jul 2007 12:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046486#M29544</guid>
      <dc:creator>Qcheck</dc:creator>
      <dc:date>2007-07-30T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046487#M29545</link>
      <description>You might also want to see if your system is already running a scheduled job called 'tmpwatch'.&lt;BR /&gt;&lt;BR /&gt;On a Redhat system, this is run from '/etc/cron.daily/tmpwatch', and has a line similar to this in it:&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/tmpwatch 240 /tmp&lt;BR /&gt;&lt;BR /&gt;(Note: It may have some '-x &lt;NAME&gt;' excludes on it to ignore X windows sockets).&lt;BR /&gt;&lt;BR /&gt;This does basically what you are after, but for files older than 10 days.  Tweaking 240 down to 48 would also do what you are after.&lt;/NAME&gt;</description>
      <pubDate>Mon, 30 Jul 2007 17:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046487#M29545</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-30T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove older than 2 weeks</title>
      <link>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046488#M29546</link>
      <description>Oops, not down to 48..  Up it to 336..</description>
      <pubDate>Mon, 30 Jul 2007 17:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/remove-older-than-2-weeks/m-p/4046488#M29546</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-30T17:22:23Z</dc:date>
    </item>
  </channel>
</rss>

