<?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: Running PHP CLI shell scripts</title>
	<atom:link href="http://blog.johan-mares.be/ict/php/running-php-shell-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/</link>
	<description>A personal blog</description>
	<lastBuildDate>Fri, 30 Jul 2010 20:42:44 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ahmed</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-17666</link>
		<dc:creator>ahmed</dc:creator>
		<pubDate>Tue, 18 May 2010 09:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-17666</guid>
		<description>good job,</description>
		<content:encoded><![CDATA[<p>good job,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ved</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-10338</link>
		<dc:creator>Ved</dc:creator>
		<pubDate>Mon, 21 Sep 2009 17:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-10338</guid>
		<description>Helped a lot. Kudos to you!</description>
		<content:encoded><![CDATA[<p>Helped a lot. Kudos to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: varisha</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-9021</link>
		<dc:creator>varisha</dc:creator>
		<pubDate>Thu, 23 Jul 2009 07:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-9021</guid>
		<description>To learn another programming language like perl or bash to make shell scripts, you can run cron jobs in PHP and you can reuse code from a website for example in your shell script. When having application that has well defined model layer you can implement tools that operate on the model from CLI scripts and reuse most of the model. Also when implementing models that should work only with PHP CLI, they should also be the part of the model and CLI script should be kept simple as possible.</description>
		<content:encoded><![CDATA[<p>To learn another programming language like perl or bash to make shell scripts, you can run cron jobs in PHP and you can reuse code from a website for example in your shell script. When having application that has well defined model layer you can implement tools that operate on the model from CLI scripts and reuse most of the model. Also when implementing models that should work only with PHP CLI, they should also be the part of the model and CLI script should be kept simple as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yandex</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-7077</link>
		<dc:creator>Yandex</dc:creator>
		<pubDate>Wed, 10 Jun 2009 20:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-7077</guid>
		<description>It was very interesting for me, as I beginner in scripting (sorry for my english).</description>
		<content:encoded><![CDATA[<p>It was very interesting for me, as I beginner in scripting (sorry for my english).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Mares &#187; 1 month of blogging</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-1388</link>
		<dc:creator>Johan Mares &#187; 1 month of blogging</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-1388</guid>
		<description>[...] days after my blog came online my post about Running PHP CLI shell scripts got picked up (on a Sunday) by the Zend Developer Zone, resulting in 255 visitors in 1 day, and [...]</description>
		<content:encoded><![CDATA[<p>[...] days after my blog came online my post about Running PHP CLI shell scripts got picked up (on a Sunday) by the Zend Developer Zone, resulting in 255 visitors in 1 day, and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asterisk Cli Command Information « it’S Easy! and Un-Afailable</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-93</link>
		<dc:creator>Asterisk Cli Command Information « it’S Easy! and Un-Afailable</dc:creator>
		<pubDate>Thu, 22 Jan 2009 12:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-93</guid>
		<description>[...] Johan Mares » Running PHP CLI shell scripts [...]</description>
		<content:encoded><![CDATA[<p>[...] Johan Mares » Running PHP CLI shell scripts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Command Line PHP&#160;&#124;&#160;The Desi Video Blog</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-87</link>
		<dc:creator>Command Line PHP&#160;&#124;&#160;The Desi Video Blog</dc:creator>
		<pubDate>Thu, 22 Jan 2009 03:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-87</guid>
		<description>[...] run them through a console shell? In case this is news to you, take a look at Johan Mares&#8217; blog post on the topic, in which he&#8217;s explained everything you need to know to use the PHP command-line [...]</description>
		<content:encoded><![CDATA[<p>[...] run them through a console shell? In case this is news to you, take a look at Johan Mares&#8217; blog post on the topic, in which he&#8217;s explained everything you need to know to use the PHP command-line [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Mares&#8217; Blog: Running PHP CLI shell scripts : Dragonfly Networks</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-12</link>
		<dc:creator>Johan Mares&#8217; Blog: Running PHP CLI shell scripts : Dragonfly Networks</dc:creator>
		<pubDate>Wed, 07 Jan 2009 10:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-12</guid>
		<description>[...] Mares has a recent post about using PHP on the command [...]</description>
		<content:encoded><![CDATA[<p>[...] Mares has a recent post about using PHP on the command [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajai Khattri</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-11</link>
		<dc:creator>Ajai Khattri</dc:creator>
		<pubDate>Tue, 06 Jan 2009 23:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-11</guid>
		<description>Nothing new about any of this - the shebang is the &#039;standard&#039; way to run scripts on a Unix environment.</description>
		<content:encoded><![CDATA[<p>Nothing new about any of this &#8211; the shebang is the &#8217;standard&#8217; way to run scripts on a Unix environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin van Zonneveld</title>
		<link>http://blog.johan-mares.be/ict/php/running-php-shell-scripts/comment-page-1/#comment-10</link>
		<dc:creator>Kevin van Zonneveld</dc:creator>
		<pubDate>Tue, 06 Jan 2009 17:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.johan-mares.be/?p=71#comment-10</guid>
		<description>Cronjobs run periodically at a certain interval. This can cause overlap, and sometimes you need to know about the state of a previous run.

In these cases you can make your PHP CLI script act like a service (daemon), running indefinitely in the background (just like apache or mysql). 

I&#039;ve wrapped the required code in the following class:
http://pear.php.net/package/System_Daemon</description>
		<content:encoded><![CDATA[<p>Cronjobs run periodically at a certain interval. This can cause overlap, and sometimes you need to know about the state of a previous run.</p>
<p>In these cases you can make your PHP CLI script act like a service (daemon), running indefinitely in the background (just like apache or mysql). </p>
<p>I&#8217;ve wrapped the required code in the following class:<br />
<a href="http://pear.php.net/package/System_Daemon" rel="nofollow">http://pear.php.net/package/System_Daemon</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
