<?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: Shells and Tasks</title>
	<atom:link href="http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Wed, 17 Mar 2010 14:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CakePHP : exécuter une &#8220;task&#8221; via l&#8217;interface web - Damien Mathieu, développeur web</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-100709</link>
		<dc:creator>CakePHP : exécuter une &#8220;task&#8221; via l&#8217;interface web - Damien Mathieu, développeur web</dc:creator>
		<pubDate>Sun, 27 Jul 2008 14:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-100709</guid>
		<description>[...] de développer ce genre de scripts. Il en existe déjà un résumant assez bien la chose sur cakebaker [...]</description>
		<content:encoded><![CDATA[<p>[...] de développer ce genre de scripts. Il en existe déjà un résumant assez bien la chose sur cakebaker [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP : effectuer une &#8220;task&#8221; via une interface web - Damien Mathieu, développeur web</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-97945</link>
		<dc:creator>CakePHP : effectuer une &#8220;task&#8221; via une interface web - Damien Mathieu, développeur web</dc:creator>
		<pubDate>Sat, 12 Jul 2008 00:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-97945</guid>
		<description>[...] ce genre de scripts. Il en existe d&#233;j&#224; un r&#233;sumant assez bien la chose sur cakebaker [...]</description>
		<content:encoded><![CDATA[<p>[...] ce genre de scripts. Il en existe d&eacute;j&agrave; un r&eacute;sumant assez bien la chose sur cakebaker [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-11015</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 06 Sep 2007 09:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-11015</guid>
		<description>@Debbie: I think it should be no problem to use a task inside a controller as long as you don&#039;t use command line specific things in your task like reading user input from the command line. And you probably have to include the required files manually as it was not planned to use tasks in that way ;-)

Good luck!</description>
		<content:encoded><![CDATA[<p>@Debbie: I think it should be no problem to use a task inside a controller as long as you don&#8217;t use command line specific things in your task like reading user input from the command line. And you probably have to include the required files manually as it was not planned to use tasks in that way ;-)</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debbie</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-10992</link>
		<dc:creator>Debbie</dc:creator>
		<pubDate>Wed, 05 Sep 2007 09:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-10992</guid>
		<description>hi,

i want to write a console app which will do from cron stuff my web interface can do interactively.  SO i don&#039;t want my code in shells or tasks.  i want my shells and my controllers to use the same stuff, the models and the components.  unless my controllers can also run tasks, i would only write stuff in tasks which is only useful from the command line.

so do you think controllers can also run tasks or the code should go in a component or a vendor class?</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>i want to write a console app which will do from cron stuff my web interface can do interactively.  SO i don&#8217;t want my code in shells or tasks.  i want my shells and my controllers to use the same stuff, the models and the components.  unless my controllers can also run tasks, i would only write stuff in tasks which is only useful from the command line.</p>
<p>so do you think controllers can also run tasks or the code should go in a component or a vendor class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-7642</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 13 Jul 2007 07:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-7642</guid>
		<description>@Diego: You can use something like:
&lt;pre&gt;
loadModel(&#039;Post&#039;);
$this-&gt;Post = new Post();
$this-&gt;Post-&gt;findAll();
&lt;/pre&gt;

HTH</description>
		<content:encoded><![CDATA[<p>@Diego: You can use something like:</p>
<pre>
loadModel('Post');
$this-&gt;Post = new Post();
$this-&gt;Post-&gt;findAll();
</pre>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-7638</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Thu, 12 Jul 2007 16:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-7638</guid>
		<description>@cakebaker: Hi there! thanx for your help, there aren&#039;t much examples out there, what i am trying to do is the following, from a shell script, i would like to access some data stored in the DB, Lets say the POSTS model for example, trying to get innactive posts or something like that. I&#039;ve tried looking in the ACL shell without much success.</description>
		<content:encoded><![CDATA[<p>@cakebaker: Hi there! thanx for your help, there aren&#8217;t much examples out there, what i am trying to do is the following, from a shell script, i would like to access some data stored in the DB, Lets say the POSTS model for example, trying to get innactive posts or something like that. I&#8217;ve tried looking in the ACL shell without much success.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-7633</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 12 Jul 2007 06:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-7633</guid>
		<description>@Diego: Hm, I don&#039;t understand what you try to accomplish...</description>
		<content:encoded><![CDATA[<p>@Diego: Hm, I don&#8217;t understand what you try to accomplish&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-7630</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Thu, 12 Jul 2007 00:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-7630</guid>
		<description>Hey this is very cool, indeed, but i have been trying to find out how to use; if it is possible?, my models in app/models 
Has anyone tried to??</description>
		<content:encoded><![CDATA[<p>Hey this is very cool, indeed, but i have been trying to find out how to use; if it is possible?, my models in app/models<br />
Has anyone tried to??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-6661</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 21 May 2007 07:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-6661</guid>
		<description>@Joel: Well, the advantage of using tasks over using multiple methods is that tasks can be reused in other shell scripts.</description>
		<content:encoded><![CDATA[<p>@Joel: Well, the advantage of using tasks over using multiple methods is that tasks can be reused in other shell scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Moss</title>
		<link>http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/comment-page-1/#comment-6650</link>
		<dc:creator>Joel Moss</dc:creator>
		<pubDate>Sat, 19 May 2007 22:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/05/16/shells-and-tasks/#comment-6650</guid>
		<description>I suppose tasks are just a way of breaking up a console script into smaller tasks. Which is more manageable, but the same can still be achieved with one console script and a method for each task.

But each to their own ;)</description>
		<content:encoded><![CDATA[<p>I suppose tasks are just a way of breaking up a console script into smaller tasks. Which is more manageable, but the same can still be achieved with one console script and a method for each task.</p>
<p>But each to their own ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
