<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — HOTFIX 0.5.1: incorrect crontab job]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic523.xml" />
	<updated>2010-01-05T02:09:36Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic523-hotfix-051-incorrect-crontab-job.html</id>
		<entry>
			<title type="html"><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2236.html#p2236" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-05T02:09:36Z</updated>
			<id>http://www.iredmail.org/forum/post2236.html#p2236</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2232.html#p2232" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mbsouth]]></name>
				<uri>http://www.iredmail.org/forum/user69.html</uri>
			</author>
			<updated>2010-01-04T23:09:29Z</updated>
			<id>http://www.iredmail.org/forum/post2232.html#p2232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2214.html#p2214" />
			<content type="html"><![CDATA[<p>Which linux distro do you use?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2010-01-04T02:15:25Z</updated>
			<id>http://www.iredmail.org/forum/post2214.html#p2214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HOTFIX 0.5.1: incorrect crontab job]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post2209.html#p2209" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mbsouth]]></name>
				<uri>http://www.iredmail.org/forum/user69.html</uri>
			</author>
			<updated>2010-01-03T18:19:47Z</updated>
			<id>http://www.iredmail.org/forum/post2209.html#p2209</id>
		</entry>
</feed>
