<?xml version="1.0" encoding="utf-8"?><!-- generator="b2evolution/6.9.7-stable" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Mr N - Latest Comments on Plesk's Awstats show Select Period in wrong order</title>
		<link>https://www.bigsoft.co.uk/blog/?disp=comments</link>
		<atom:link rel="self" type="application/rss+xml" href="https://www.bigsoft.co.uk/blog/?tempskin=_rss2&#38;disp=comments&#38;p=99" />
		<description></description>
		<language>en-GB</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=6.9.7-stable"/>
		<ttl>60</ttl>
		<item>
			<title> Jennifer Arsenault [Visitor] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Wed, 17 Oct 2012 18:52:09 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_2518">Jennifer Arsenault</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c2518@https://www.bigsoft.co.uk/</guid>
			<description>&lt;p&gt;I know this is an old article, but I thought I could help someone else. Apparently, this is still an issue on Plesk 11.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m moving to a new server, and I&amp;#8217;m new to Plesk. I just figured out how to migrate years of Awstats data files and was irritated by the random menu order. It&amp;#8217;s especially an issue if there are more than a couple of months. A Google search brought me here. And your script is just what I needed.&lt;/p&gt;
&lt;p&gt;However, I too would like to have text months rather than numbers, so I set out to tweak your script. Although I do have a programming background, this is my first attempt at shell programming. There&amp;#8217;s probably a better way to do this, but here is what I came up with.&lt;/p&gt;
&lt;p&gt;Add the following line near the top where the other variables are set. Use full months instead of abbreviated ones if you prefer.
MONTHS=(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)&lt;/p&gt;
&lt;p&gt;Add the following 4 lines at line 48.
for MONTH in 1 2 3 4 5 6 7 8 9 10 11 12
do
  sed -i &amp;#8220;s/-&lt;code class=&quot;codespan&quot;&gt;printf &#039;%.2d&#039; $MONTH&lt;/code&gt;&amp;lt;/ ${MONTHS[MONTH-1]}&amp;lt;/g&amp;#8221; nav_options.html
done&lt;/p&gt;
&lt;p&gt;The above changes only the display months and not the values so it doesn&amp;#8217;t affect function at all. I haven&amp;#8217;t tested the original or edited script via cron yet, but it works from the command line.&lt;/p&gt;
&lt;p&gt;Hope it helps someone else.&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>I know this is an old article, but I thought I could help someone else. Apparently, this is still an issue on Plesk 11.</p>
<p>I&#8217;m moving to a new server, and I&#8217;m new to Plesk. I just figured out how to migrate years of Awstats data files and was irritated by the random menu order. It&#8217;s especially an issue if there are more than a couple of months. A Google search brought me here. And your script is just what I needed.</p>
<p>However, I too would like to have text months rather than numbers, so I set out to tweak your script. Although I do have a programming background, this is my first attempt at shell programming. There&#8217;s probably a better way to do this, but here is what I came up with.</p>
<p>Add the following line near the top where the other variables are set. Use full months instead of abbreviated ones if you prefer.
MONTHS=(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)</p>
<p>Add the following 4 lines at line 48.
for MONTH in 1 2 3 4 5 6 7 8 9 10 11 12
do
  sed -i &#8220;s/-<code class="codespan">printf '%.2d' $MONTH</code>&lt;/ ${MONTHS[MONTH-1]}&lt;/g&#8221; nav_options.html
done</p>
<p>The above changes only the display months and not the values so it doesn&#8217;t affect function at all. I haven&#8217;t tested the original or edited script via cron yet, but it works from the command line.</p>
<p>Hope it helps someone else.</p>]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c2518</link>
		</item>
		<item>
			<title>davidnewcomb [Member] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Sun, 12 Dec 2010 22:48:50 +0000</pubDate>
			<dc:creator><a href="https://www.bigsoft.co.uk/?disp=user&amp;user_ID=1" title="Show the user profile" class="login user nowrap" rel="bubbletip_user_1"><span class="identity_link_username">davidnewcomb</span></a> <span class="bUser-member-tag">[Member]</span></dc:creator>
			<guid isPermaLink="false">c466@https://www.bigsoft.co.uk/</guid>
			<description>&lt;p&gt;Formatting the dates would be handled by the awstats generation file. The program merely sorts the existing entries into order.
You&amp;#8217;ll have to read all about awstats yourself. Besides if Plesk is messing up the ordering already and you try to sort Jan, Feb, &amp;#8230; into alphabetical order they will be even more messed up!&lt;/p&gt;
&lt;p&gt;As far as I know the month thing is not fixed in Plesk either but my solution still works as is.&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>Formatting the dates would be handled by the awstats generation file. The program merely sorts the existing entries into order.
You&#8217;ll have to read all about awstats yourself. Besides if Plesk is messing up the ordering already and you try to sort Jan, Feb, &#8230; into alphabetical order they will be even more messed up!</p>
<p>As far as I know the month thing is not fixed in Plesk either but my solution still works as is.</p>]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c466</link>
		</item>
		<item>
			<title> Paul [Visitor] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Fri, 10 Dec 2010 12:46:48 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_463">Paul</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c463@https://www.bigsoft.co.uk/</guid>
			<description>Any chance of uploading the monthly fix as well &amp;#8230;. I&amp;#8217;m not sure whether the monthly stats are fixed in plesk 9 at the moments they&amp;#8217;re are still missing in the current month view - upgraded to Plesk 9 a few days ago so maybe that won&amp;#8217;t become apparent until January if they&amp;#8217;ve fixed it &amp;#8230;</description>
			<content:encoded><![CDATA[Any chance of uploading the monthly fix as well &#8230;. I&#8217;m not sure whether the monthly stats are fixed in plesk 9 at the moments they&#8217;re are still missing in the current month view - upgraded to Plesk 9 a few days ago so maybe that won&#8217;t become apparent until January if they&#8217;ve fixed it &#8230;]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c463</link>
		</item>
		<item>
			<title> Paul [Visitor] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Fri, 10 Dec 2010 12:36:32 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_462">Paul</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c462@https://www.bigsoft.co.uk/</guid>
			<description>Cool thanks, that work a treat, used on Plesk 9.5.3 &amp;#8230;.. any way to format date like &amp;#8216;Dec 2010&amp;prime; format ???</description>
			<content:encoded><![CDATA[Cool thanks, that work a treat, used on Plesk 9.5.3 &#8230;.. any way to format date like &#8216;Dec 2010&prime; format ???]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c462</link>
		</item>
		<item>
			<title>davidnewcomb [Member] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Thu, 09 Dec 2010 08:57:11 +0000</pubDate>
			<dc:creator><a href="https://www.bigsoft.co.uk/?disp=user&amp;user_ID=1" title="Show the user profile" class="login user nowrap" rel="bubbletip_user_1"><span class="identity_link_username">davidnewcomb</span></a> <span class="bUser-member-tag">[Member]</span></dc:creator>
			<guid isPermaLink="false">c461@https://www.bigsoft.co.uk/</guid>
			<description>&lt;p&gt;Maybe I can get another blog article about using inline pipes in shell scripts.&lt;/p&gt;
&lt;p&gt;I have uploaded the file to here:
&lt;a href=&quot;http://www.bigsoft.co.uk/projects/sample-code/plesk-awstats-nav-fixer.sh&quot;&gt;http://www.bigsoft.co.uk/projects/sample-code/plesk-awstats-nav-fixer.sh
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You will see that the following &amp;#8220;ed&amp;#8221; line finishes with EOF:
&lt;code&gt;ed nav_nooptions.html &amp;lt;&amp;lt; EOF &lt;/code&gt;
and all the lines to the corresponding &lt;code&gt;EOF&lt;/code&gt; marker are how they would appear in the file that would have been piped in.&lt;br /&gt;&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>Maybe I can get another blog article about using inline pipes in shell scripts.</p>
<p>I have uploaded the file to here:
<a href="http://www.bigsoft.co.uk/projects/sample-code/plesk-awstats-nav-fixer.sh">http://www.bigsoft.co.uk/projects/sample-code/plesk-awstats-nav-fixer.sh
</a></p>
<p>You will see that the following &#8220;ed&#8221; line finishes with EOF:
<code>ed nav_nooptions.html &lt;&lt; EOF </code>
and all the lines to the corresponding <code>EOF</code> marker are how they would appear in the file that would have been piped in.<br /></p>]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c461</link>
		</item>
		<item>
			<title> Paul [Visitor] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Thu, 09 Dec 2010 04:00:50 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_460">Paul</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c460@https://www.bigsoft.co.uk/</guid>
			<description>Thanks, don&amp;#8217;t really understand Linux files so not sure how to fix it, could you make a file available to download? I&amp;#8217;ve just updated to Plesk 9.53 now but still seems to be the same problem which I though should be fixed in v9</description>
			<content:encoded><![CDATA[Thanks, don&#8217;t really understand Linux files so not sure how to fix it, could you make a file available to download? I&#8217;ve just updated to Plesk 9.53 now but still seems to be the same problem which I though should be fixed in v9]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c460</link>
		</item>
		<item>
			<title>davidnewcomb [Member] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Mon, 06 Dec 2010 09:48:41 +0000</pubDate>
			<dc:creator><a href="https://www.bigsoft.co.uk/?disp=user&amp;user_ID=1" title="Show the user profile" class="login user nowrap" rel="bubbletip_user_1"><span class="identity_link_username">davidnewcomb</span></a> <span class="bUser-member-tag">[Member]</span></dc:creator>
			<guid isPermaLink="false">c459@https://www.bigsoft.co.uk/</guid>
			<description>&lt;p&gt;The trouble is that you have cut and pasted the script from this page straight into your terminal.
When you did so the editor added some indentation. In doing so it would have indented the EOF marker from the end of the &amp;#8220;ed&amp;#8221; script. With no marker the file terminates at the end of the file with the error.&lt;/p&gt;
&lt;p&gt;To correct the problem move the EOF marker so that it is the only text on the line and it starts at the beginning of the line.&lt;/p&gt;</description>
			<content:encoded><![CDATA[<p>The trouble is that you have cut and pasted the script from this page straight into your terminal.
When you did so the editor added some indentation. In doing so it would have indented the EOF marker from the end of the &#8220;ed&#8221; script. With no marker the file terminates at the end of the file with the error.</p>
<p>To correct the problem move the EOF marker so that it is the only text on the line and it starts at the beginning of the line.</p>]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c459</link>
		</item>
		<item>
			<title> Paul [Visitor] in response to: Plesk's Awstats show Select Period in wrong order</title>
			<pubDate>Sat, 04 Dec 2010 00:08:55 +0000</pubDate>
			<dc:creator><span class="user anonymous" rel="bubbletip_comment_456">Paul</span> <span class="bUser-anonymous-tag">[Visitor]</span></dc:creator>
			<guid isPermaLink="false">c456@https://www.bigsoft.co.uk/</guid>
			<description>i&amp;#8217;m getting the same error: &amp;#8216;line 60: syntax error: unexpected end of file&amp;#8217; can anyone email me a working file to try ?&lt;br /&gt;</description>
			<content:encoded><![CDATA[i&#8217;m getting the same error: &#8216;line 60: syntax error: unexpected end of file&#8217; can anyone email me a working file to try ?<br />]]></content:encoded>
			<link>https://www.bigsoft.co.uk/blog/2008/12/02/plesk-s-awstats-show-select-period-in-wr#c456</link>
		</item>
			</channel>
</rss>
