<?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: Creating cron script in Magento</title>
	<atom:link href="http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/</link>
	<description>Magento Design and Magento Development Professionals - Inchoo</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:35:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Muzammil</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-25942</link>
		<dc:creator>Muzammil</dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-25942</guid>
		<description>is there any way we can run  cron by direct run url in browser.</description>
		<content:encoded><![CDATA[<p>is there any way we can run  cron by direct run url in browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kob</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-25753</link>
		<dc:creator>kob</dc:creator>
		<pubDate>Sun, 15 Jan 2012 19:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-25753</guid>
		<description>HI.
I try to send an email template via cron.
I know the cron function works b&#039;coz I can send emails hard coded like : mail(&quot;mymail@example.com&quot;,&#039;bla&#039;,&#039;bla&#039;);
and I know that the code I use for sending the email template works b&#039;coz when I put the code in a .phtml file and run it through the browser it sends the email.
It is only when I try to use the template inside the cron function that it is not working.
any ideas what can I do?</description>
		<content:encoded><![CDATA[<p>HI.<br />
I try to send an email template via cron.<br />
I know the cron function works b&#8217;coz I can send emails hard coded like : mail(&#8220;mymail@example.com&#8221;,&#8217;bla&#8217;,'bla&#8217;);<br />
and I know that the code I use for sending the email template works b&#8217;coz when I put the code in a .phtml file and run it through the browser it sends the email.<br />
It is only when I try to use the template inside the cron function that it is not working.<br />
any ideas what can I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivn</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-24480</link>
		<dc:creator>Ivn</dc:creator>
		<pubDate>Tue, 20 Dec 2011 11:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-24480</guid>
		<description>@Gz Chauhan

I think if you need to run your cron  every 12 hours, may be this expression should work.

* 0,12 * * *

Try it out!</description>
		<content:encoded><![CDATA[<p>@Gz Chauhan</p>
<p>I think if you need to run your cron  every 12 hours, may be this expression should work.</p>
<p>* 0,12 * * *</p>
<p>Try it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gz Chauhan</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-24475</link>
		<dc:creator>Gz Chauhan</dc:creator>
		<pubDate>Tue, 20 Dec 2011 11:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-24475</guid>
		<description>Hi..
i create cron module and it work fine but problem is that when i set 
   
  0 */12 * * *
 
in config.xml it not send mail every 12 hours.. can u say this is right expresion or not.. can u give me right expresion for every 12 hours cron set</description>
		<content:encoded><![CDATA[<p>Hi..<br />
i create cron module and it work fine but problem is that when i set </p>
<p>  0 */12 * * *</p>
<p>in config.xml it not send mail every 12 hours.. can u say this is right expresion or not.. can u give me right expresion for every 12 hours cron set</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivn</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-24030</link>
		<dc:creator>Ivn</dc:creator>
		<pubDate>Mon, 28 Nov 2011 11:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-24030</guid>
		<description>Hi there,

I need to create a cron job in Magento which should send emails to customers whose order status is complete. I need to schedule this cron job such that it checks for order with status = &quot;complete&quot; and send them emails. Also the customers which are already sent an email should be marked so that they are not sent email twice.

I have created a custom module and in its config.xml I have added my template email and cron job scheduled.

Also in the Module&gt;&gt;Model&gt;&gt;Observer.php I have declared my sendEmail() trying to send a test email to my email id.

I try to run this cron task by running http://yourdomain.com/cron.php. But I fail to get any mail.

Any suggestions please?</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I need to create a cron job in Magento which should send emails to customers whose order status is complete. I need to schedule this cron job such that it checks for order with status = &#8220;complete&#8221; and send them emails. Also the customers which are already sent an email should be marked so that they are not sent email twice.</p>
<p>I have created a custom module and in its config.xml I have added my template email and cron job scheduled.</p>
<p>Also in the Module&gt;&gt;Model&gt;&gt;Observer.php I have declared my sendEmail() trying to send a test email to my email id.</p>
<p>I try to run this cron task by running <a href="http://yourdomain.com/cron.php" rel="nofollow">http://yourdomain.com/cron.php</a>. But I fail to get any mail.</p>
<p>Any suggestions please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pristaldus</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-22494</link>
		<dc:creator>Pristaldus</dc:creator>
		<pubDate>Tue, 30 Aug 2011 04:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-22494</guid>
		<description>Sorry, my first comment was errorous...

[code]
&lt;config&gt;
  &lt;!-- ... ---&gt;
  &lt;global&gt;
    &lt;models&gt;
      &lt;birthday&gt;
         &lt;class&gt;Inchoo_Birthday_Model&lt;/class&gt;
      &lt;/birthday&gt;
    &lt;/models&gt;
  &lt;/global&gt;
  &lt;!-- ... --&gt;
&lt;/config&gt;
[/code]

It is OK. The global section is important :))))</description>
		<content:encoded><![CDATA[<p>Sorry, my first comment was errorous&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
&lt;config&gt;
  &lt;!-- ... ---&gt;
  &lt;global&gt;
    &lt;models&gt;
      &lt;birthday&gt;
         &lt;class&gt;Inchoo_Birthday_Model&lt;/class&gt;
      &lt;/birthday&gt;
    &lt;/models&gt;
  &lt;/global&gt;
  &lt;!-- ... --&gt;
&lt;/config&gt;
</pre>
<p>It is OK. The global section is important <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pristaldus</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-22491</link>
		<dc:creator>Pristaldus</dc:creator>
		<pubDate>Mon, 29 Aug 2011 21:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-22491</guid>
		<description>Don&#039;t forget to add the model in the config.xml file&#039;s global section!

With using the package ang module name of the example:

[code]
&lt;config&gt;
  &lt;!-- ... --&gt;
  &lt;models&gt;
    &lt;birthday&gt;
      &lt;class&gt;Inchoo_Birthday_Model&lt;/class&gt;
    &lt;/birthday&gt;
  &lt;/models&gt;
&lt;/config&gt;
[/code]

It will eliminate the &#039;invalid callback&#039; error mentioned above by Codep and cron will work.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget to add the model in the config.xml file&#8217;s global section!</p>
<p>With using the package ang module name of the example:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;config&gt;
  &lt;!-- ... --&gt;
  &lt;models&gt;
    &lt;birthday&gt;
      &lt;class&gt;Inchoo_Birthday_Model&lt;/class&gt;
    &lt;/birthday&gt;
  &lt;/models&gt;
&lt;/config&gt;
</pre>
<p>It will eliminate the &#8216;invalid callback&#8217; error mentioned above by Codep and cron will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: key</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-20841</link>
		<dc:creator>key</dc:creator>
		<pubDate>Mon, 09 May 2011 07:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-20841</guid>
		<description>If you want to run it on Centos or other OS.  You can get info from http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job#cron.sh or http://fishpig.co.uk/magento-cron-jobs/ and .</description>
		<content:encoded><![CDATA[<p>If you want to run it on Centos or other OS.  You can get info from <a href="http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job#cron.sh" rel="nofollow">http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/how_to_setup_a_cron_job#cron.sh</a> or <a href="http://fishpig.co.uk/magento-cron-jobs/" rel="nofollow">http://fishpig.co.uk/magento-cron-jobs/</a> and .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-19651</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Wed, 23 Feb 2011 07:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-19651</guid>
		<description>I really want the functioin ! That ten day after I send the products to customer , then system send a email to customer !? any idea?</description>
		<content:encoded><![CDATA[<p>I really want the functioin ! That ten day after I send the products to customer , then system send a email to customer !? any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codep</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-8005</link>
		<dc:creator>codep</dc:creator>
		<pubDate>Wed, 01 Sep 2010 09:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-8005</guid>
		<description>I did EXACTLY what you&#039;ve suggested but it doesn&#039;t work - in cron_schedule table in magento&#039;s base I&#039;m getting following error: &#039;exception &#039;Mage_Core_Exception&#039; with message &#039;Invalid callback: birthday/observer::sendBirthayEmail does not exist&#039;....&#039;. do you have any idea why?</description>
		<content:encoded><![CDATA[<p>I did EXACTLY what you&#8217;ve suggested but it doesn&#8217;t work &#8211; in cron_schedule table in magento&#8217;s base I&#8217;m getting following error: &#8216;exception &#8216;Mage_Core_Exception&#8217; with message &#8216;Invalid callback: birthday/observer::sendBirthayEmail does not exist&#8217;&#8230;.&#8217;. do you have any idea why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erwik</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-7468</link>
		<dc:creator>erwik</dc:creator>
		<pubDate>Mon, 28 Jun 2010 14:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-7468</guid>
		<description>Great tip, just another question? How allow the store&#039;s administrator to choose when execute the script?</description>
		<content:encoded><![CDATA[<p>Great tip, just another question? How allow the store&#8217;s administrator to choose when execute the script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cobay</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-6667</link>
		<dc:creator>Cobay</dc:creator>
		<pubDate>Wed, 07 Apr 2010 11:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-6667</guid>
		<description>&quot;This cron will be executed every day at 01:00 AM. The important thing: You have to set cron execution on the server (www.yourstore.com/cron.php), without it will not work.&quot;

What is role of crontab command on linux(CentOS 5.3)
and What is role of &quot;cron.php&quot; ?
and What is role of magento&#039;s cron script ?

Have any relevant above three kind of task ?? please....</description>
		<content:encoded><![CDATA[<p>&#8220;This cron will be executed every day at 01:00 AM. The important thing: You have to set cron execution on the server (www.yourstore.com/cron.php), without it will not work.&#8221;</p>
<p>What is role of crontab command on linux(CentOS 5.3)<br />
and What is role of &#8220;cron.php&#8221; ?<br />
and What is role of magento&#8217;s cron script ?</p>
<p>Have any relevant above three kind of task ?? please&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Next</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-6089</link>
		<dc:creator>Next</dc:creator>
		<pubDate>Tue, 02 Feb 2010 19:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-6089</guid>
		<description>Hi, I posted a comment on Toni Anicic&#039;s blog about cron. 
http://inchoo.net/ecommerce/magento/magento-newsletter/

He&#039;s  been very kind and tried to help, but maybe you are the right person for this topic.
We are experiencing strange behavior with cron-based.
After the two comments in Toni&#039;s blog, we re-queued the newsletter, launched cron via wget and are observing the mail server&#039;s behaviour.
Current batch size ($countOfSubscritions) is 20.
Right after the cron run, the mail server received 105 e-mails for delivery.
How&#039;s it that 20 becomes 105 with a single cron run?</description>
		<content:encoded><![CDATA[<p>Hi, I posted a comment on Toni Anicic&#8217;s blog about cron.<br />
<a href="http://inchoo.net/ecommerce/magento/magento-newsletter/" rel="nofollow">http://inchoo.net/ecommerce/magento/magento-newsletter/</a></p>
<p>He&#8217;s  been very kind and tried to help, but maybe you are the right person for this topic.<br />
We are experiencing strange behavior with cron-based.<br />
After the two comments in Toni&#8217;s blog, we re-queued the newsletter, launched cron via wget and are observing the mail server&#8217;s behaviour.<br />
Current batch size ($countOfSubscritions) is 20.<br />
Right after the cron run, the mail server received 105 e-mails for delivery.<br />
How&#8217;s it that 20 becomes 105 with a single cron run?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asha</title>
		<link>http://inchoo.net/ecommerce/magento/creating-cron-script-in-magento/comment-page-1/#comment-5907</link>
		<dc:creator>asha</dc:creator>
		<pubDate>Tue, 19 Jan 2010 10:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=3771#comment-5907</guid>
		<description>can you provide me complete module for this</description>
		<content:encoded><![CDATA[<p>can you provide me complete module for this</p>
]]></content:encoded>
	</item>
</channel>
</rss>

