<?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: CakePHP Shells, and Cron Jobs</title>
	<atom:link href="http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/</link>
	<description>Random ramblings from the depths of my mind...</description>
	<lastBuildDate>Thu, 13 May 2010 19:37:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Frederick D.</title>
		<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/comment-page-1/#comment-178</link>
		<dc:creator>Frederick D.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.utoxin.name/?p=91#comment-178</guid>
		<description>Sure! Here it is:

http://bin.cakephp.org/view/608307067

The code for the actions &#039;lof&#039; and &#039;sendMail&#039; also exist in my controller. I was testing via a URL to debug the database fetch and sending of the message. It works there very well. I am trying to automate the process and would then take the code out of the controller.

Hopefully it is not too fouled up. Thank you for taking a look! If you want, you may e-mail me directly if this clogging up your blog entry too much. Thank you!</description>
		<content:encoded><![CDATA[<p>Sure! Here it is:</p>
<p><a href="http://bin.cakephp.org/view/608307067" rel="nofollow">http://bin.cakephp.org/view/608307067</a></p>
<p>The code for the actions &#8216;lof&#8217; and &#8216;sendMail&#8217; also exist in my controller. I was testing via a URL to debug the database fetch and sending of the message. It works there very well. I am trying to automate the process and would then take the code out of the controller.</p>
<p>Hopefully it is not too fouled up. Thank you for taking a look! If you want, you may e-mail me directly if this clogging up your blog entry too much. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Utoxin</title>
		<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/comment-page-1/#comment-177</link>
		<dc:creator>Utoxin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.utoxin.name/?p=91#comment-177</guid>
		<description>That error tells me that there&#039;s something wrong with the class definition of the shell. Mind putting it up in a pastebin?</description>
		<content:encoded><![CDATA[<p>That error tells me that there&#8217;s something wrong with the class definition of the shell. Mind putting it up in a pastebin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick D.</title>
		<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/comment-page-1/#comment-176</link>
		<dc:creator>Frederick D.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.utoxin.name/?p=91#comment-176</guid>
		<description>Incremental progress...

I ran this command from Terminal using your input above:

/home/myusername/myproject.mydomain.com/cake/console/cake reminders lof -app /home/myusername/myproject.mydomain.com/app

The entire contents of the shell were displayed on the terminal console screen and then this:

Error: Class RemindersShell could not be loaded[monrovia]$

Monrovia is the name of the server I am assigned to on Dreamhost. Hmmm... Is this a symptom of not having cake in the path for my user id? My user id has shell access with a shell type of /bin/bash, whatever that means.

I very much appreciate your help!</description>
		<content:encoded><![CDATA[<p>Incremental progress&#8230;</p>
<p>I ran this command from Terminal using your input above:</p>
<p>/home/myusername/myproject.mydomain.com/cake/console/cake reminders lof -app /home/myusername/myproject.mydomain.com/app</p>
<p>The entire contents of the shell were displayed on the terminal console screen and then this:</p>
<p>Error: Class RemindersShell could not be loaded[monrovia]$</p>
<p>Monrovia is the name of the server I am assigned to on Dreamhost. Hmmm&#8230; Is this a symptom of not having cake in the path for my user id? My user id has shell access with a shell type of /bin/bash, whatever that means.</p>
<p>I very much appreciate your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Utoxin</title>
		<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/comment-page-1/#comment-175</link>
		<dc:creator>Utoxin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.utoxin.name/?p=91#comment-175</guid>
		<description>Sorry I didn&#039;t catch it the first time. The first path needs to be the path that leads to cake_core/console/cake.

In your case, that would appear to be:

/home/myusername/myproject.mydomain.com/cake/console/cake

Let me know if that helps.

Also, the second path should include your app directory.</description>
		<content:encoded><![CDATA[<p>Sorry I didn&#8217;t catch it the first time. The first path needs to be the path that leads to cake_core/console/cake.</p>
<p>In your case, that would appear to be:</p>
<p>/home/myusername/myproject.mydomain.com/cake/console/cake</p>
<p>Let me know if that helps.</p>
<p>Also, the second path should include your app directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick D.</title>
		<link>http://www.utoxin.name/2009/07/cakephp-shells-and-cron-jobs/comment-page-1/#comment-174</link>
		<dc:creator>Frederick D.</dc:creator>
		<pubDate>Wed, 03 Mar 2010 16:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.utoxin.name/?p=91#comment-174</guid>
		<description>Getting closer!

I was able to do as you suggested. I didn&#039;t know I could log in via Terminal (OS X) to Dreamhost. My revised cron job command looks like this now:

/home/myusername/myproject.mydomain.com/vendors/shells reminders lof -app /home/myusername/myproject.mydomain.com

Dreamhost is sending me a message that ../vendors/shells &quot;is a directory&quot;, but the shell does not appear to be running.

When I run the command from the command line in Terminal I get the same message: &quot;is a directory&quot;.

Again suggestions ObiWan?</description>
		<content:encoded><![CDATA[<p>Getting closer!</p>
<p>I was able to do as you suggested. I didn&#8217;t know I could log in via Terminal (OS X) to Dreamhost. My revised cron job command looks like this now:</p>
<p>/home/myusername/myproject.mydomain.com/vendors/shells reminders lof -app /home/myusername/myproject.mydomain.com</p>
<p>Dreamhost is sending me a message that ../vendors/shells &#8220;is a directory&#8221;, but the shell does not appear to be running.</p>
<p>When I run the command from the command line in Terminal I get the same message: &#8220;is a directory&#8221;.</p>
<p>Again suggestions ObiWan?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
