<?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: My first useful program, ever</title>
	<atom:link href="http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/</link>
	<description>ain't that the truth</description>
	<lastBuildDate>Sat, 21 Mar 2009 10:59:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: King_Lion</title>
		<link>http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/comment-page-1/#comment-2081</link>
		<dc:creator>King_Lion</dc:creator>
		<pubDate>Sat, 21 Mar 2009 10:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.quodlibetor.com/?p=111#comment-2081</guid>
		<description>I would ask the same question as Ferand did - though I am on Win XP.  And, I am not as good as to write this script myself. Is it possible a windows script to be suggested? Thanks!</description>
		<content:encoded><![CDATA[<p>I would ask the same question as Ferand did &#8211; though I am on Win XP.  And, I am not as good as to write this script myself. Is it possible a windows script to be suggested? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quodlibetor</title>
		<link>http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/comment-page-1/#comment-2078</link>
		<dc:creator>quodlibetor</dc:creator>
		<pubDate>Wed, 11 Feb 2009 18:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.quodlibetor.com/?p=111#comment-2078</guid>
		<description>@stroller:
I considered using cron, but I had a lot of trouble setting things to run correctly while I was doing this. However, doing what you describe (starting at the bash command prompt):
&lt;pre lang=&quot;bash&quot;&gt;
$ crontab -e  # this pulls up the crontab file editor to which you append:

*/4 * * * * ls  /media/drive-you-want-alive

&lt;/pre&gt;

The &lt;code&gt;*/4&lt;/code&gt; is equivalent to &lt;code&gt;0-59/4&lt;/code&gt;.

A couple advantage that I&#039;d say my solution has is that it doesn&#039;t require you to go futzing around with the crontab file, which on some systems you won&#039;t have access to, and also, if the root of that drive is huge doing an &lt;code lang=&quot;bash&quot;&gt;ls&lt;/code&gt; on it can be a really big deal, way more of a deal than just touching an empty file. If that&#039;s the case you could basically do hdactive in cron:
&lt;pre lang=&quot;bash&quot;&gt;
*/4 * * * * touch /media/drive-you-want-alive/.hdactive
&lt;/pre&gt;

And since hdactive requires significantly more setup and is therefore way more confusing than crontab, if you&#039;ve got access to it, it&#039;s probably the way to go.</description>
		<content:encoded><![CDATA[<p>@stroller:<br />
I considered using cron, but I had a lot of trouble setting things to run correctly while I was doing this. However, doing what you describe (starting at the bash command prompt):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ crontab <span style="color: #660033;">-e</span>  <span style="color: #666666; font-style: italic;"># this pulls up the crontab file editor to which you append:</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>  <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>drive-you-want-alive</pre></div></div>

<p>The <code>*/4</code> is equivalent to <code>0-59/4</code>.</p>
<p>A couple advantage that I&#8217;d say my solution has is that it doesn&#8217;t require you to go futzing around with the crontab file, which on some systems you won&#8217;t have access to, and also, if the root of that drive is huge doing an <code lang="bash">ls</code> on it can be a really big deal, way more of a deal than just touching an empty file. If that&#8217;s the case you could basically do hdactive in cron:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*/</span><span style="color: #000000;">4</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>drive-you-want-alive<span style="color: #000000; font-weight: bold;">/</span>.hdactive</pre></div></div>

<p>And since hdactive requires significantly more setup and is therefore way more confusing than crontab, if you&#8217;ve got access to it, it&#8217;s probably the way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stroller</title>
		<link>http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/comment-page-1/#comment-2077</link>
		<dc:creator>Stroller</dc:creator>
		<pubDate>Mon, 02 Feb 2009 00:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.quodlibetor.com/?p=111#comment-2077</guid>
		<description>Someone just linked to you from HardForum - before they did so I was considering this question and my first solution was nearly the same as yours.

I don&#039;t have this problem myself, but doesn&#039;t `ls` keep the drive spun up? I don&#039;t like creating unnecessary files on the hard-drive, but if you don&#039;t then - if you use `touch` - you have to change the modification date of some other file on the drive. So `ls` seems preferable, unless the o/s is caching the directory listing.

Also, I wouldn&#039;t tend to run the script manually - that way you have to remember to do so every time you reboot your computer. I would omit the `sleep` so that it runs to completion &amp; doesn&#039;t hang around in the background. Then just add it to crontab so that it is automagically run every 4 minutes; I believe this is the crontab syntax:
0-59/4 * * * *   ./hdactive.sh</description>
		<content:encoded><![CDATA[<p>Someone just linked to you from HardForum &#8211; before they did so I was considering this question and my first solution was nearly the same as yours.</p>
<p>I don&#8217;t have this problem myself, but doesn&#8217;t `ls` keep the drive spun up? I don&#8217;t like creating unnecessary files on the hard-drive, but if you don&#8217;t then &#8211; if you use `touch` &#8211; you have to change the modification date of some other file on the drive. So `ls` seems preferable, unless the o/s is caching the directory listing.</p>
<p>Also, I wouldn&#8217;t tend to run the script manually &#8211; that way you have to remember to do so every time you reboot your computer. I would omit the `sleep` so that it runs to completion &amp; doesn&#8217;t hang around in the background. Then just add it to crontab so that it is automagically run every 4 minutes; I believe this is the crontab syntax:<br />
0-59/4 * * * *   ./hdactive.sh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferand</title>
		<link>http://blog.quodlibetor.com/2008/05/my-first-useful-program-ever/comment-page-1/#comment-2036</link>
		<dc:creator>Ferand</dc:creator>
		<pubDate>Wed, 27 Aug 2008 09:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.quodlibetor.com/?p=111#comment-2036</guid>
		<description>Hey there, I&#039;m an editor working on PC (windows Vista).
Just bought a 1 TB external HD to edit with and I need it to not spin down (sleep)

any chance of this script working for me?

How might I go about it (I&#039;m not a programmer, but I know my way around a PC)

Cheers for any help
-Ferand</description>
		<content:encoded><![CDATA[<p>Hey there, I&#8217;m an editor working on PC (windows Vista).<br />
Just bought a 1 TB external HD to edit with and I need it to not spin down (sleep)</p>
<p>any chance of this script working for me?</p>
<p>How might I go about it (I&#8217;m not a programmer, but I know my way around a PC)</p>
<p>Cheers for any help<br />
-Ferand</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.601 seconds -->
