<?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: Script for running Cron on all sites in a shared Drupal instance</title>
	<atom:link href="http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/</link>
	<description>apparently much happier in person</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:03:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Khalid</title>
		<link>http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/#comment-82865</link>
		<dc:creator>Khalid</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">1689411003#comment-82865</guid>
		<description>Darcy,

Ruby may not be available on all systems. 

Here is a shell script that does the same thing. Same assumptions as yours. It is tested too.

&lt;pre&gt;
#!/bin/sh

if [ $# = 1 ]; then
  DRUPAL_SITES_DIR=$1/sites
  if [ -d &quot;$DRUPAL_SITES_DIR&quot; ]; then
    cd $DRUPAL_SITES_DIR

    for SITE in `ls -F &#124; grep /`
    do
      FILE=${SITE}settings.php
      if [ -r &quot;$FILE&quot; ]; then
        URL=`grep &#039;^\$base_url.*=&#039; $FILE &#124; sed -e &quot;s/^.*http://&quot; -e &quot;s/[&#039;;]//g&quot;`
        if [ &quot;$URL&quot; != &quot;&quot; ]; then
          wget -O - -q http:$URL/cron.php
        fi
      fi
    done
  fi
fi
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Darcy,</p>
<p>Ruby may not be available on all systems. </p>
<p>Here is a shell script that does the same thing. Same assumptions as yours. It is tested too.</p>
<pre>
#!/bin/sh

if [ $# = 1 ]; then
  DRUPAL_SITES_DIR=$1/sites
  if [ -d "$DRUPAL_SITES_DIR" ]; then
    cd $DRUPAL_SITES_DIR

    for SITE in `ls -F | grep /`
    do
      FILE=${SITE}settings.php
      if [ -r "$FILE" ]; then
        URL=`grep '^\$base_url.*=' $FILE | sed -e "s/^.*http://" -e "s/[';]//g"`
        if [ "$URL" != "" ]; then
          wget -O - -q http:$URL/cron.php
        fi
      fi
    done
  fi
fi
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/#comment-82866</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">1689411003#comment-82866</guid>
		<description>Khalid - Well, fine then. Go ahead and whip up a better, more generalizable script that will run anywhere. :-)

At least I got to play in Ruby for a bit. I&#039;ll be switching to your script to run cron.php, though. Thanks!</description>
		<content:encoded><![CDATA[<p>Khalid &#8211; Well, fine then. Go ahead and whip up a better, more generalizable script that will run anywhere. <img src='http://www.darcynorman.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>At least I got to play in Ruby for a bit. I&#8217;ll be switching to your script to run cron.php, though. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sami khan</title>
		<link>http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/#comment-82867</link>
		<dc:creator>sami khan</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">1689411003#comment-82867</guid>
		<description>lol. i was thinking, c&#039;mon now d&#039;arcy a ruby script to power a php script?!?</description>
		<content:encoded><![CDATA[<p>lol. i was thinking, c&#8217;mon now d&#8217;arcy a ruby script to power a php script?!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2007/01/01/script-for-running-cron-on-all-sites-in-a-shared-drupal-instance/#comment-82868</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">1689411003#comment-82868</guid>
		<description>yeah yeah... I could have written it in C, so I could run &lt;code&gt;./configure make make install&lt;/code&gt; too :-) I just wanted to write the script and figured Ruby would be cool. Loosely joined and all that. It&#039;s just firing off a curl to a web interface anyway. It could have been written in Logo :-)</description>
		<content:encoded><![CDATA[<p>yeah yeah&#8230; I could have written it in C, so I could run <code>./configure make make install</code> too <img src='http://www.darcynorman.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I just wanted to write the script and figured Ruby would be cool. Loosely joined and all that. It&#8217;s just firing off a curl to a web interface anyway. It could have been written in Logo <img src='http://www.darcynorman.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
