<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — HOTFIX 0.5.1: incorrect crontab job]]></title>
		<link>http://www.iredmail.org/forum/topic523-hotfix-051-incorrect-crontab-job.html</link>
		<atom:link href="http://www.iredmail.org/forum/feed-rss-topic523.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in HOTFIX 0.5.1: incorrect crontab job.]]></description>
		<lastBuildDate>Tue, 05 Jan 2010 02:09:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link>http://www.iredmail.org/forum/post2236.html#p2236</link>
			<description><![CDATA[<p>It works for me here:<br /></p><div class="codebox"><pre><code>amavis@demo:~$ ls -dl /var/virusmails/
drwxr-xr-x 2 amavis amavis 4096 2010-01-04 21:07 /var/virusmails/

amavis@demo:~$  find /var/virusmails -ctime +30 | xargs rm -rf {}

amavis@demo:~$ ls -dl /var/virusmails/
drwxr-xr-x 2 amavis amavis 4096 2010-01-04 21:07 /var/virusmails/</code></pre></div><p>Run as root:<br /></p><div class="codebox"><pre><code>root@demo:~# ls -dl /var/virusmails/
drwxr-xr-x 2 amavis amavis 4096 2010-01-04 21:07 /var/virusmails/

root@demo:~# find /var/virusmails -ctime +30 | xargs rm -rf {}

root@demo:~# ls -dl /var/virusmails/
drwxr-xr-x 2 amavis amavis 4096 2010-01-04 21:07 /var/virusmails/</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 05 Jan 2010 02:09:36 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2236.html#p2236</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link>http://www.iredmail.org/forum/post2232.html#p2232</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Which linux distro do you use?</p></blockquote></div><p>Debian Lenny<br />Thx</p>]]></description>
			<author><![CDATA[null@example.com (mbsouth)]]></author>
			<pubDate>Mon, 04 Jan 2010 23:09:29 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2232.html#p2232</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link>http://www.iredmail.org/forum/post2214.html#p2214</link>
			<description><![CDATA[<p>Which linux distro do you use?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 04 Jan 2010 02:15:25 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2214.html#p2214</guid>
		</item>
		<item>
			<title><![CDATA[HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link>http://www.iredmail.org/forum/post2209.html#p2209</link>
			<description><![CDATA[<p>Hi all, when I run<br /></p><div class="quotebox"><blockquote><p>find /var/virusmails -ctime +30</p></blockquote></div><p>lot of mails (*.gz) where found. When I run&nbsp; &nbsp;<br /></p><div class="quotebox"><blockquote><p>find /var/virusmails -ctime +30 | xargs rm -rf {}</p></blockquote></div><p>manually (shell - Debian Lenny), it deletes the hole virusmail directory.<br />Is there a different by running a cron job or shell command or is there an ending shlash missung (.../virusmails/ ...)?</p><br /><br /><p>HOTFIX: incorrect crontab job</p><div class="quotebox"><blockquote><p>#---- Run below command in terminal ----<br /># sudo crontab -e -u amavis<br />1&nbsp; &nbsp;5&nbsp; &nbsp;*&nbsp; &nbsp;*&nbsp; &nbsp;*&nbsp; &nbsp;find /var/virusmails -ctime +30 | xargs rm -rf {}</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (mbsouth)]]></author>
			<pubDate>Sun, 03 Jan 2010 18:19:47 +0000</pubDate>
			<guid>http://www.iredmail.org/forum/post2209.html#p2209</guid>
		</item>
	</channel>
</rss>
