<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thecrumb &#187; cron</title>
	<atom:link href="http://thecrumb.com/tag/cron/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecrumb.com</link>
	<description>ramblings of a coldfusion developer</description>
	<lastBuildDate>Thu, 09 Sep 2010 23:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Meet Me On CFMeetup!</title>
		<link>http://thecrumb.com/2010/08/30/meet-me-on-cfmeetup-2/</link>
		<comments>http://thecrumb.com/2010/08/30/meet-me-on-cfmeetup-2/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 15:00:11 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[autohotkey]]></category>
		<category><![CDATA[cfmeetup]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://thecrumb.com/?p=1179</guid>
		<description><![CDATA[Did you miss my CFUnited presentation because you couldn&#8217;t step into the room because it was jam packed? I&#8217;ll be giving my &#8220;Digging Into The Developer Toolbox&#8221; presentation on the CFMeetup! Link To Recording Every developer has their basic toolset &#8211; a robust IDE, source control and a good bug tracker. But what else is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://thecrumb.com/wp-content/uploads/2010/08/toolbox.jpg"><img class="alignright size-full wp-image-1183" title="toolbox" src="http://thecrumb.com/wp-content/uploads/2010/08/toolbox.jpg" alt="" width="200" height="200" /></a>Did you miss my CFUnited presentation because you couldn&#8217;t step into the room because it was jam packed?</p>
<p>I&#8217;ll be giving my &#8220;Digging Into The Developer Toolbox&#8221; presentation on the <a title="CFMeetup" href="http://www.meetup.com/coldfusionmeetup/">CFMeetup</a>!</p>
<p><strong><a href="http://experts.na3.acrobat.com/p18861546/">Link To Recording</a></strong></p>
<blockquote><p>Every developer has their basic toolset &#8211; a robust IDE, source control and a good bug tracker. But what else is in your toolbox?</p>
<p>In this presentation I&#8217;ll explore some additional tools that can increase your productivity and allow you to concentrate on developing applications.</p>
<p>Some of the tools we will explore include:</p>
<ul>
<li>Autohotkey &#8211; save time and type less! Autohotkey can do simple text replacements and well as complex GUIs!</li>
<li>Keyboard Launchers &#8211; clean up that messy desktop and stop hunting for icons!</li>
<li>Virtual desktops &#8211; Now that your desktop is clean &#8211; organize your applications into task focused areas.</li>
<li> Cron &#8211; replace the unreliable Windows Scheduled task with a simple to use task scheduler.</li>
<li>Clipboard managers &#8211; a clipboard manager can keep a long running history of what you type so you don&#8217;t have to. and more&#8230;</li>
</ul>
<p>All of these are free, open-source and for the most part have similar equivalents available on all three platforms &#8211; Windows, Mac and Linux.</p>
<p>In this presentation we will focus on Windows.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2010/08/30/meet-me-on-cfmeetup-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Task Scheduler</title>
		<link>http://thecrumb.com/2010/08/20/windows-7-task-scheduler/</link>
		<comments>http://thecrumb.com/2010/08/20/windows-7-task-scheduler/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 14:00:08 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://thecrumb.com/?p=1159</guid>
		<description><![CDATA[On Window XP the ability to reliably schedule anything was severely limited and problematic. Tasks wouldn&#8217;t run if you were logged out, and if you changed your password tasks would fail with authentication errors unless you remembered to update each task. Given these limitations I searched for an alternative and in previous posts I&#8217;ve talked [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1160" class="wp-caption alignright" style="width: 277px"><a href="http://thecrumb.com/wp-content/uploads/2010/08/67399-schedule-task-weekly.gif"><img class="size-medium wp-image-1160" title="67399-schedule-task-weekly" src="http://thecrumb.com/wp-content/uploads/2010/08/67399-schedule-task-weekly-267x300.gif" alt="Win98 Scheduled Tasks" width="267" height="300" /></a><p class="wp-caption-text">Windows 98 Scheduled Tasks</p></div>
<p>On Window XP the ability to reliably schedule anything was severely limited and problematic. Tasks wouldn&#8217;t run if you were logged out, and if you changed your password tasks would fail with authentication errors unless you remembered to update each task.</p>
<p>Given these limitations I searched for an alternative and in <a href="http://thecrumb.com/2009/08/15/cron-for-windows/">previous</a> <a href="http://thecrumb.com/2009/11/05/introduction-to-cron/">posts</a> I&#8217;ve talked about using Cron as a viable replacement for Windows Scheduled tasks.</p>
<p>This has worked great&#8230; on Windows XP at work.  Recently while I was preparing for my presentation at CFUnited I discovered that the particular Cron package I was using ( <a href="http://www.nncron.ru/">nnCron</a> ) did not work on Windows 7.  I discovered this the night before my presentation!</p>
<p>On a whim I looked to see what the scheduler looked like in Window 7 and was presently surprised in the improvements made by Microsoft!</p>
<p>In Windows 7 you can hit the Windows menu and simply type &#8220;Task&#8221; and you will see an entry for &#8220;Task Scheduler&#8221;.</p>
<p>The interface has totally been revamped.  Don&#8217;t panic &#8211; it is fairly intuitive after clicking around a bit.</p>
<p style="text-align: center;">
<div id="attachment_1161" class="wp-caption aligncenter" style="width: 310px"><a href="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched1.png"><img class="size-medium wp-image-1161 " title="win7-task-sched1" src="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched1-300x195.png" alt="Wndows 7 Task Scheduler" width="300" height="195" /></a><p class="wp-caption-text">Wndows 7 Task Scheduler</p></div>
<p>The interface is split into 3 panes.  The left most pane is the list of tasks.  The middle pane is where the task details are defined and the right pane is a quick menu to frequent actions.</p>
<p style="text-align: center;">To get started &#8211; hit Create Task in the right pane.</p>
<p style="text-align: center;">
<div id="attachment_1162" class="wp-caption aligncenter" style="width: 261px"><a href="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched2.png"><img class="size-full wp-image-1162" title="win7-task-sched2" src="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched2.png" alt="Right Pane " width="251" height="301" /></a><p class="wp-caption-text">Right Pane - Action Menu</p></div>
<p><em>Create Basic Task&#8230;</em> will allow you to quickly setup a task with limited options.  <em>Create Task</em>&#8230; will give you more control.</p>
<p style="text-align: center;">
<div id="attachment_1163" class="wp-caption aligncenter" style="width: 310px"><a href="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched3.png"><img class="size-medium wp-image-1163" title="win7-task-sched3" src="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched3-300x225.png" alt="New Options" width="300" height="225" /></a><p class="wp-caption-text">New Options</p></div>
<p>The Create Task pane has several tabs &#8211; and clicking through them we can see many new option not available in the old Scheduled Tasks.  You can now run tasks whether you are logged in or not.</p>
<div id="attachment_1165" class="wp-caption aligncenter" style="width: 310px"><a href="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched5.png"><img class="size-medium wp-image-1165" title="win7-task-sched5" src="http://thecrumb.com/wp-content/uploads/2010/08/win7-task-sched5-300x258.png" alt="New Options" width="300" height="258" /></a><p class="wp-caption-text">New Options</p></div>
<p>There is too much to cover in one blog post but if you are using Windows 7 take a few minutes to click through and explore all the features.  Between the available <em>triggers </em>(at log on, startup, on event, on lock, etc) and the <em>actions (start program, send mail, display message) </em>and <em>conditions  (on AC power, idle, etc) </em>you should be able to schedule just about anything!</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2010/08/20/windows-7-task-scheduler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introduction To Cron</title>
		<link>http://thecrumb.com/2009/11/05/introduction-to-cron/</link>
		<comments>http://thecrumb.com/2009/11/05/introduction-to-cron/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:25:54 +0000</pubDate>
		<dc:creator>Jim Priest</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://www.thecrumb.com/?p=957</guid>
		<description><![CDATA[In my previous entry Cron For Windows I discussed using cron as a better replacement for Windows Scheduled Task.  Today we will look at how easy cron is to configure and look at a few examples that I have configured. This tuturial will assume you have downloaded nnCron Lite and have it configured according to [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous entry <a title="Cron for Windows" href="http://www.thecrumb.com/2009/08/15/cron-for-windows/">Cron For Windows</a> I discussed using cron as a better replacement for Windows Scheduled Task.  Today we will look at how easy cron is to configure and look at a few examples that I have configured.</p>
<p>This tuturial will assume you have downloaded <a title="nnCron" href="http://www.nncron.ru">nnCron Lite</a> and have it configured according to the online documentation. If you are on Mac or Linux you should already have cron available.  nnCron&#8217;s format is the same as Unix so everything here should work anywhere you have cron available.</p>
<p>I installed nnCron to C:\Program Files\cron.  Within that directory you should have a file called cron.tab. This is the main file used for starting and stopping your applications. While it&#8217;s not a GUI interface like Scheduled Tasks the configuration file is very easy to understand.  Open cron.tab with Notepad or your favorite text editor.</p>
<p>The syntax is very simple&#8230;</p>
<pre class="brush: text">
# Classic crontab format
# Minutes Hours Days Months WeekDays Command
</pre>
<p>Some things to note: comments are preceeded by a &#8220;#&#8221; sign. Empty lines, leading spaces and tabs are ignored.  nnCron also allows you to skip wrapping filenames and paths in quotations, and there is no need to call the command interpreter. Please see the nnCron documentation for more information.</p>
<p>For our first example we will run a batch file every morning to refresh my ColdFusion services to make sure everything is up and running when I get into the office.  So assuming I have a batch file (cf8_restart.cmd) configured to stop and restart my ColdFusion services I can do the following:</p>
<pre class="brush: text">
# restart web/cf services every morning
0 7 * * 1-5 D:\_documents\scripts\batch\cf8_restart.cmd
</pre>
<p>The time format breaks down like:</p>
<p>0 = this is minutes &#8211; we want to run our script at the top of the hour<br />
7 = equals hours &#8211; and we want to kick off our script at 7am (24hr format)<br />
* = no value for days and months<br />
1-5 = weekdays &#8211; we want this to only run M-F</p>
<p>For another example I run a backup utility to backup our JIRA instance:</p>
<pre class="brush: text">
# run JIRA backup procedure every day at 12am and 12pm
0 0,12 * * * C:\Program Files\2BrightSparks\SyncBack\SyncBack.exe -m &quot;JIRA Backup&quot;
</pre>
<p>0 = this is minutes again &#8211; we want to run our script at the top of the hour<br />
0,12 = equals hours &#8211; in this case I backup every 12 hours &#8211; at midnight and noon<br />
* = no value for days, months and weekdays &#8211; this script runs everyday</p>
<p>These examples are very simple but the cron format can do very complicated schedules.</p>
<p>Here are a few examples taken from the nnCron documentation:</p>
<ul>
<li> 59 23 31 12 5  -  One minute  before the end of year if the last day of the year is Friday</li>
<li>45 17 7 6 *   -  Every  year, on June 7th at 17:45</li>
<li>0 9 1-7 * 1   -  First Monday of each month, at 9 a.m.</li>
<li>0 0 1 * * &#8211; At midnight, on the first day of each month</li>
</ul>
<p>If you are using Windows Scheduled task and looking for more flexibility and reliability in your scheduled tasks I would encourage you to check out cron.</p>
]]></content:encoded>
			<wfw:commentRss>http://thecrumb.com/2009/11/05/introduction-to-cron/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
