<?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: symfony init-batch</title>
	<atom:link href="http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/</link>
	<description>Thoughts on Web Development, Scalability and Application Architecture</description>
	<lastBuildDate>Sat, 27 Feb 2010 11:02:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rp</title>
		<link>http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/comment-page-1/#comment-537</link>
		<dc:creator>rp</dc:creator>
		<pubDate>Tue, 14 Oct 2008 15:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=33#comment-537</guid>
		<description>hi Suresh, 
I suppose you can, in my current implementation i just used php code.    

$php_path = sfConfig::get(&#039;app_php_path&#039;);
$script_path = SF_ROOT_DIR . DIRECTORY_SEPARATOR . &#039;batch&#039; . DIRECTORY_SEPARATOR . &#039;mailer.php&#039;;
$full_exec_command = $php_path .&#039; -q &#039; . $script_path;

// invoke the newsletter
exec($full_exec_command, &amp;$output);


you can call it via php if you need to call it once in a while or put in a cron file if you need to do it periodically, its pretty much down to you. hope that answers your question.</description>
		<content:encoded><![CDATA[<p>hi Suresh,<br />
I suppose you can, in my current implementation i just used php code.    </p>
<p>$php_path = sfConfig::get(&#8216;app_php_path&#8217;);<br />
$script_path = SF_ROOT_DIR . DIRECTORY_SEPARATOR . &#8216;batch&#8217; . DIRECTORY_SEPARATOR . &#8216;mailer.php&#8217;;<br />
$full_exec_command = $php_path .&#8217; -q &#8216; . $script_path;</p>
<p>// invoke the newsletter<br />
exec($full_exec_command, &#038;$output);</p>
<p>you can call it via php if you need to call it once in a while or put in a cron file if you need to do it periodically, its pretty much down to you. hope that answers your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/comment-page-1/#comment-536</link>
		<dc:creator>Suresh</dc:creator>
		<pubDate>Tue, 14 Oct 2008 12:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=33#comment-536</guid>
		<description>Hi Rajat,

How do I run these batch scripts?

Can I run these from the command prompt using :
&gt;php batch/FileName.php

or Should I use cron to run them ?

Please explain.

Thanks.

Suresh</description>
		<content:encoded><![CDATA[<p>Hi Rajat,</p>
<p>How do I run these batch scripts?</p>
<p>Can I run these from the command prompt using :<br />
&gt;php batch/FileName.php</p>
<p>or Should I use cron to run them ?</p>
<p>Please explain.</p>
<p>Thanks.</p>
<p>Suresh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Smith</title>
		<link>http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/comment-page-1/#comment-385</link>
		<dc:creator>Dave Smith</dc:creator>
		<pubDate>Sat, 23 Aug 2008 18:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=33#comment-385</guid>
		<description>Hi!
Thanks for this tip!

In the symfony book, it&#039;s written: 
&quot; The symfony CLI offers an init-batch task, which automatically creates a skeleton similar to the one in Listing 6-3 in the batch/ directory. Just pass it an application name, an environment name, and a batch name as arguments.&quot;
on the page: http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Batch Files

Thanks to your post, I didn&#039;t have to search the code to understand the arguments needed by the init-batch script.

Thanks a lot!
Dave</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Thanks for this tip!</p>
<p>In the symfony book, it&#8217;s written:<br />
&#8221; The symfony CLI offers an init-batch task, which automatically creates a skeleton similar to the one in Listing 6-3 in the batch/ directory. Just pass it an application name, an environment name, and a batch name as arguments.&#8221;<br />
on the page: <a href="http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Batch" rel="nofollow">http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Batch</a> Files</p>
<p>Thanks to your post, I didn&#8217;t have to search the code to understand the arguments needed by the init-batch script.</p>
<p>Thanks a lot!<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blackhatseo</title>
		<link>http://blog.rajatpandit.com/2008/07/13/symfony-init-batch/comment-page-1/#comment-165</link>
		<dc:creator>Blackhatseo</dc:creator>
		<pubDate>Sat, 19 Jul 2008 21:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=33#comment-165</guid>
		<description>I like the layout here, anyways, my blog is dofollow, come get a link.  Bobby.</description>
		<content:encoded><![CDATA[<p>I like the layout here, anyways, my blog is dofollow, come get a link.  Bobby.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
