<rss version="2.0">
		<channel>
			<title>OpenDNS Forums - How do I automate fetchstats.sh - and OfficeCalc hints as well?</title>
			<lastBuildDate>Sun, 19 May 2013 22:24:34 +0000</lastBuildDate>
			<link>http://forums.opendns.com/</link>
			<description></description>
			<generator>Lussumo Vanilla 1.1.4</generator>
			<item>
		<title>How do I automate fetchstats.sh - and OfficeCalc hints as well?</title>
		<link>http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78431#Comment_78431</link>
		<guid isPermaLink="false">http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78431#Comment_78431</guid>
		<pubDate>Sat, 24 Mar 2012 04:26:54 +0000</pubDate>
		<author>callmebruce</author>
		<description>
			<![CDATA[Had two main questions.<br />I downloaded fetchstats bash shell script and ran it. Interesting data. How do I go about adding it to cron (or something like that?) to run either daily or weekly. Since I need to feed the script the date range, anyone have a way to pull the current date in a script?<br /><br />Second question - I went through the data and tried to graph blocked sites. Just tryoing to wrap my self around what the data presents, and how to make it easier to understand. Anyone messing with LibreOffice Calc? Any hints on basic reports using Calc?]]>
		</description>
	</item>
	<item>
		<title>How do I automate fetchstats.sh - and OfficeCalc hints as well?</title>
		<link>http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78441#Comment_78441</link>
		<guid isPermaLink="false">http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78441#Comment_78441</guid>
		<pubDate>Sat, 24 Mar 2012 12:07:29 +0000</pubDate>
		<author>rosch</author>
		<description>
			<![CDATA["How do I go about adding it to cron"<br />Use this command in a terminal: crontab -e<br />Then add a line like so:<br />50 23 * * 1-7 /path/to/file/mystats.sh &gt; /path/to/csv/$(date).csv<br /><br />This would run 10min to midnight every day. Your machine has to run at this time for this to happen. Don't forget to change the paths to your existing ones. Also, since you want to automize this, you have to comment out lines 39-43 and set the password on line 44 like so:<br />PASSWORD=opendns_password<br /><br />Instead of using "crontab -e" you can also use anacron. More info on the net :)<br /><br />This is what mystats.sh can look like (pulls today's opendns stats):<br />fetchstats username network_name $(date +%Y-%m-%d)<br /><br />For LibreOffice Calc you should be able to find documentation online.]]>
		</description>
	</item>
	<item>
		<title>How do I automate fetchstats.sh - and OfficeCalc hints as well?</title>
		<link>http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78457#Comment_78457</link>
		<guid isPermaLink="false">http://forums.opendns.com/comments.php?DiscussionID=13749&amp;Focus=78457#Comment_78457</guid>
		<pubDate>Sat, 24 Mar 2012 18:01:23 +0000</pubDate>
		<author>callmebruce</author>
		<description>
			<![CDATA[Thanks! I made fetchstats executable, edited and ran it to test the password part. Worked like a champ. Set up mystats.sh and ran that. Worked great! I installed Scheduler in Ubuntu and just used the GUI to set up the task. Not sure hw to kick it off now to test it, so will check it after it is scheduled to run. I appreciate your pointers - they got it running.]]>
		</description>
	</item>
	
		</channel>
	</rss>