<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rotating your Standard Out/Err log files</title>
	<atom:link href="http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/</link>
	<description>A blog about technology that I work on in my day to day job</description>
	<lastBuildDate>Mon, 20 Sep 2010 23:28:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: puru</title>
		<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/comment-page-1/#comment-33</link>
		<dc:creator>puru</dc:creator>
		<pubDate>Thu, 27 Nov 2008 13:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://ghattus.com/2008/04/rotating-your-standard-outerr-log-files/#comment-33</guid>
		<description>Hi,&lt;br/&gt;I am facing the same problems as raghu. Does any body has a workaround for this?&lt;br/&gt;&lt;br/&gt;My conf file looks like &lt;br/&gt;&lt;br/&gt;{&lt;br/&gt;missingok&lt;br/&gt;copytruncate&lt;br/&gt;rotate 7&lt;br/&gt;compress&lt;br/&gt;notifempty&lt;br/&gt;sharedscripts&lt;br/&gt;postrotate&lt;br/&gt;endscript&lt;br/&gt;}</description>
		<content:encoded><![CDATA[<p>Hi,<br />I am facing the same problems as raghu. Does any body has a workaround for this?</p>
<p>My conf file looks like </p>
<p>{<br />missingok<br />copytruncate<br />rotate 7<br />compress<br />notifempty<br />sharedscripts<br />postrotate<br />endscript<br />}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghu</title>
		<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/comment-page-1/#comment-32</link>
		<dc:creator>Raghu</dc:creator>
		<pubDate>Wed, 26 Nov 2008 20:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://ghattus.com/2008/04/rotating-your-standard-outerr-log-files/#comment-32</guid>
		<description>Hi After using the logrotate, the file becomes 0 bytes and after sometime it is being restored to the original size. Also I see the disk space not beinf released.&lt;br/&gt;&lt;br/&gt;Any ideas on this?</description>
		<content:encoded><![CDATA[<p>Hi After using the logrotate, the file becomes 0 bytes and after sometime it is being restored to the original size. Also I see the disk space not beinf released.</p>
<p>Any ideas on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/comment-page-1/#comment-31</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 10 Jul 2008 21:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://ghattus.com/2008/04/rotating-your-standard-outerr-log-files/#comment-31</guid>
		<description>I cannot get it to work, my script looks like this&lt;br/&gt;&lt;br/&gt;/export/home/aratnam/logs/*.out {&lt;br/&gt;copytruncate&lt;br/&gt;compress&lt;br/&gt;rotate 1&lt;br/&gt;size=100k&lt;br/&gt;sharedscripts&lt;br/&gt;olddir /export/home/aratnam/old-logs&lt;br/&gt;postrotate&lt;br/&gt;time=`date +%s`&lt;br/&gt;echo $time&lt;br/&gt;mkdir -p /export/home/aratnam/old-logs/$time&lt;br/&gt;mv /export/home/aratnam/logs/*.out.1.gz /export/home/aratnam/old-logs/$time&lt;br/&gt;endscript&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;I get the following error&lt;br/&gt;error: /etc/logrotate.conf:7 bad olddir path /export/home/aratnam/old-logs&lt;br/&gt;error: found error in /export/home/aratnam/logs/*.out , skipping&lt;br/&gt;error: /etc/logrotate.conf:7 } expected</description>
		<content:encoded><![CDATA[<p>I cannot get it to work, my script looks like this</p>
<p>/export/home/aratnam/logs/*.out {<br />copytruncate<br />compress<br />rotate 1<br />size=100k<br />sharedscripts<br />olddir /export/home/aratnam/old-logs<br />postrotate<br />time=`date +%s`<br />echo $time<br />mkdir -p /export/home/aratnam/old-logs/$time<br />mv /export/home/aratnam/logs/*.out.1.gz /export/home/aratnam/old-logs/$time<br />endscript<br />}</p>
<p>I get the following error<br />error: /etc/logrotate.conf:7 bad olddir path /export/home/aratnam/old-logs<br />error: found error in /export/home/aratnam/logs/*.out , skipping<br />error: /etc/logrotate.conf:7 } expected</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/comment-page-1/#comment-30</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 18 Jun 2008 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://ghattus.com/2008/04/rotating-your-standard-outerr-log-files/#comment-30</guid>
		<description>If you use the second method &quot;logrotate&quot; do null characters get added to the beginning of the cleared logfile once the existing process starts writing there again? How does copytruncate avoid this? I know that just cat&#039;ing /dev/null into the stdout log will cause this to happen (fill w/ nulls).</description>
		<content:encoded><![CDATA[<p>If you use the second method &#8220;logrotate&#8221; do null characters get added to the beginning of the cleared logfile once the existing process starts writing there again? How does copytruncate avoid this? I know that just cat&#8217;ing /dev/null into the stdout log will cause this to happen (fill w/ nulls).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

