<?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: Linux Crontab: 15 Awesome Cron Job Examples</title>
	<atom:link href="http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Mon, 15 Mar 2010 16:15:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sofasurfer</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-37960</link>
		<dc:creator>sofasurfer</dc:creator>
		<pubDate>Sat, 06 Mar 2010 07:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-37960</guid>
		<description>@Ashwin Raj
Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM?

Try this one with two entries, but with no guarantee.
*/1 7-17 * * 1-5 yourscript.sh
0-30/1 18 * * 1-5 yourscript.sh
Combination of day of month and day of week parameter is treaten as OR condition by crontab and therefor I used an if statement to solve this situation.</description>
		<content:encoded><![CDATA[<p>@Ashwin Raj<br />
Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM?</p>
<p>Try this one with two entries, but with no guarantee.<br />
*/1 7-17 * * 1-5 yourscript.sh<br />
0-30/1 18 * * 1-5 yourscript.sh<br />
Combination of day of month and day of week parameter is treaten as OR condition by crontab and therefor I used an if statement to solve this situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin Raj</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-37882</link>
		<dc:creator>Ashwin Raj</dc:creator>
		<pubDate>Fri, 05 Mar 2010 17:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-37882</guid>
		<description>Really nice manual. Is there any way to set up a cron job to run a script Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM? I am wondering if this is possible just with the minute/hour/date/month/day specifiers. I saw an example in one of the comment posts which used a if-then conditional execution of a script. Is that the only way to go.</description>
		<content:encoded><![CDATA[<p>Really nice manual. Is there any way to set up a cron job to run a script Monday through Friday, every 1 minute starting at 7:00AM and ending at 6:30PM? I am wondering if this is possible just with the minute/hour/date/month/day specifiers. I saw an example in one of the comment posts which used a if-then conditional execution of a script. Is that the only way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sofasurfer</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-36442</link>
		<dc:creator>sofasurfer</dc:creator>
		<pubDate>Thu, 25 Feb 2010 13:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-36442</guid>
		<description>@Don
@SathiyaMoorthy

To execute a script on some days of a week and only between some days of a month you can do it this way:

# Nur am Montag (1) oder am Donnerstag (4)
10 19 2-27 * *  if [ &quot;$(date +\%u)&quot; = &quot;1&quot; ] &#124;&#124; [ &quot;$(date +\%u)&quot; = &quot;4&quot; ] ; then ./yourscript.sh ; fi

This here will not work !!! 
10 19 2-27 * 1,4</description>
		<content:encoded><![CDATA[<p>@Don<br />
@SathiyaMoorthy</p>
<p>To execute a script on some days of a week and only between some days of a month you can do it this way:</p>
<p># Nur am Montag (1) oder am Donnerstag (4)<br />
10 19 2-27 * *  if [ "$(date +\%u)" = "1" ] || [ "$(date +\%u)" = "4" ] ; then ./yourscript.sh ; fi</p>
<p>This here will not work !!!<br />
10 19 2-27 * 1,4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Top 5 Best Linux OS Distributions</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-32785</link>
		<dc:creator>Top 5 Best Linux OS Distributions</dc:creator>
		<pubDate>Fri, 05 Feb 2010 04:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-32785</guid>
		<description>[...] Linux Crontab: 15 Awesome Cron Job Examples [...]</description>
		<content:encoded><![CDATA[<p>[...] Linux Crontab: 15 Awesome Cron Job Examples [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guntis</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-28555</link>
		<dc:creator>guntis</dc:creator>
		<pubDate>Wed, 06 Jan 2010 19:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-28555</guid>
		<description>excellent!!!
have never seen better manual</description>
		<content:encoded><![CDATA[<p>excellent!!!<br />
have never seen better manual</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siegfried</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-28184</link>
		<dc:creator>siegfried</dc:creator>
		<pubDate>Sun, 03 Jan 2010 12:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-28184</guid>
		<description>for one off jobs use the &#039;at&#039; command. cron actually runs both &#039;at&#039; and &#039;cron&#039; jobs ( the &#039;c&#039; and &#039;a&#039; in the log file ). at is very flexible wrt scheduling, and at copies your current environment before running the job so no more anooying erros with your profile, path, etc. also you don&#039;t have to remember to remove your one off job from your crontab, or take that extra small risk of making a mistake each time you edit your crontab. btw, to reduce the chance of making a mistake while edting your crontab, consider doing something like : 

crontab -l &gt; crontab.old
cp crontab.old crontab.new
vi crontab.new
diff crontab.old crontab.new
crontab crontab.new

a good habit to get into esp. if you want to minimise the chance of an error in a production environment.</description>
		<content:encoded><![CDATA[<p>for one off jobs use the &#8216;at&#8217; command. cron actually runs both &#8216;at&#8217; and &#8216;cron&#8217; jobs ( the &#8216;c&#8217; and &#8216;a&#8217; in the log file ). at is very flexible wrt scheduling, and at copies your current environment before running the job so no more anooying erros with your profile, path, etc. also you don&#8217;t have to remember to remove your one off job from your crontab, or take that extra small risk of making a mistake each time you edit your crontab. btw, to reduce the chance of making a mistake while edting your crontab, consider doing something like : </p>
<p>crontab -l &gt; crontab.old<br />
cp crontab.old crontab.new<br />
vi crontab.new<br />
diff crontab.old crontab.new<br />
crontab crontab.new</p>
<p>a good habit to get into esp. if you want to minimise the chance of an error in a production environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Beginner&#8217;s Guide to The Geek Stuff &#8211; A Guided Tour</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-27692</link>
		<dc:creator>The Beginner&#8217;s Guide to The Geek Stuff &#8211; A Guided Tour</dc:creator>
		<pubDate>Tue, 29 Dec 2009 15:12:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-27692</guid>
		<description>[...] Linux Crontab: 15 Awesome Cron Job Examples [...]</description>
		<content:encoded><![CDATA[<p>[...] Linux Crontab: 15 Awesome Cron Job Examples [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leslie Satenstein</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-25638</link>
		<dc:creator>Leslie Satenstein</dc:creator>
		<pubDate>Fri, 11 Dec 2009 02:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-25638</guid>
		<description>Just fill out the line with 

mm  hh  dayofmonth  monthyear  dayofweek       command

it will work on that day, 

30 1     31      5        Mon         echo  &quot;Do this command in a year where May 31 is a Monday&quot;</description>
		<content:encoded><![CDATA[<p>Just fill out the line with </p>
<p>mm  hh  dayofmonth  monthyear  dayofweek       command</p>
<p>it will work on that day, </p>
<p>30 1     31      5        Mon         echo  &#8220;Do this command in a year where May 31 is a Monday&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salsan Jose E</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-25245</link>
		<dc:creator>Salsan Jose E</dc:creator>
		<pubDate>Tue, 08 Dec 2009 04:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-25245</guid>
		<description>How to set up one time Cron Job ?</description>
		<content:encoded><![CDATA[<p>How to set up one time Cron Job ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharad</title>
		<link>http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/comment-page-1/#comment-23350</link>
		<dc:creator>Sharad</dc:creator>
		<pubDate>Mon, 23 Nov 2009 12:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=534#comment-23350</guid>
		<description>Very informative...and superb way to demonstrate daily usages...</description>
		<content:encoded><![CDATA[<p>Very informative&#8230;and superb way to demonstrate daily usages&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
