<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>david schultz dot org &#187; linux</title>
	<atom:link href="http://www.davidschultz.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidschultz.org</link>
	<description>(dot com was taken)</description>
	<lastBuildDate>Thu, 29 Jul 2010 18:23:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to setup a linux cronjob in 3 steps</title>
		<link>http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/</link>
		<comments>http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 14:01:05 +0000</pubDate>
		<dc:creator>David Schultz</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/</guid>
		<description><![CDATA[Since web apps are executed only after an HTTP request, you may have situations where scripts need to run in the background on a scheduled basis. On Linux, to do this you&#8217;ll need to get to know the crontab. The way it works is kind of like an airport. The service is always running, however [...]

<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (8.11254)--></li>
		<li><a href="http://www.davidschultz.org/2008/01/14/emi-lays-off-2000-hmm-i-wonder-why/" rel="bookmark">EMI lays off 2,000 &#8211; hmm i wonder why</a><!-- (6.35239)--></li>
		<li><a href="http://www.davidschultz.org/2009/01/28/campbell-brown-interview-with-blago/" rel="bookmark">Campbell Brown interview with Blago</a><!-- (6.12207)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Since web apps are executed only after an HTTP request, you may have situations where scripts need to run in the background on a scheduled basis.  On Linux, to do this you&#8217;ll need to get to know the crontab.  The way it works is kind of like an airport.  The service is always running, however planes only depart at their scheduled times.  The crontab is kinda like that, a daemon that runs constantly in the background and checks once a minute to see if any jobs need to be executed.  </p>
<p>Let&#8217;s say you have a script located at <code>http://www.acme.com/myscript.php</code> that needs to run the first of every month at 9am.  Here&#8217;s how you&#8217;d set it up:</p>
<p>1.  Look for a file in your <code>/etc</code> folder called <code>crontab</code>.<br />
2.  You need to install a new crontab job, to do this type <code>crontab -e</code>.<br />
3.  Now the tricky part, the syntax:<br />
<img src="http://farm4.static.flickr.com/3230/2947143834_f1fda7947e.jpg?v=0" alt="" /><br />
and here&#8217;s how that translates in our example: </p>
<p><code>0 9 1 * * curl http://www.acme.com/myscript.php</code></p>
<p>Lets break it down.  0 is for the minute, 9 is the hour &#8211; so 9 hours &#038; 0 minutes which is 9am.  Day of the month, 1 &#8211; easy.  We want to do this for every month &#038; week, which is accomplished using the wildcard or * character.  Next comes what we want to execute.  It&#8217;s not enough to just type the URL of the script, you&#8217;ll need to use the CURL system function to make the HTTP request for you.  </p>
<p>Here is some more information on <a href="http://en.wikipedia.org/wiki/CURL">CURL</a> &#038; <a href="http://en.wikipedia.org/wiki/Cron">Cron jobs</a> for your reading pleasure, hope this tutorial helps!</p>


<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (8.11254)--></li>
		<li><a href="http://www.davidschultz.org/2008/01/14/emi-lays-off-2000-hmm-i-wonder-why/" rel="bookmark">EMI lays off 2,000 &#8211; hmm i wonder why</a><!-- (6.35239)--></li>
		<li><a href="http://www.davidschultz.org/2009/01/28/campbell-brown-interview-with-blago/" rel="bookmark">Campbell Brown interview with Blago</a><!-- (6.12207)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sendmail says: stat=Deferred: Connection reset</title>
		<link>http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/</link>
		<comments>http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/#comments</comments>
		<pubDate>Mon, 05 May 2008 18:57:13 +0000</pubDate>
		<dc:creator>David Schultz</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/</guid>
		<description><![CDATA[I have been struggling with this problem for the last 2 days and finally figured out the solution. Your mileage may vary depending on your network configuration but first some background on mine. I have a Lighttpd web server that i am running some PHP mail scripts on. We are trying to use our company&#8217;s [...]

<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (7.06439)--></li>
		<li><a href="http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/" rel="bookmark">How to setup a linux cronjob in 3 steps</a><!-- (6.26502)--></li>
		<li><a href="http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/" rel="bookmark">Phpmyadmin error: &#8220;Cannot start session without errors&#8221;</a><!-- (5.73733)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>I have been struggling with this problem for the last 2 days and finally figured out the solution.  Your mileage may vary depending on your network configuration but first some background on mine.  I have a Lighttpd web server that i am running some PHP mail scripts on.  We are trying to use our company&#8217;s MTA to relay messages so i had this line in the <code>sendmail.cf</code> file, with 10.0.0.116 being the IP address of our MTA. </p>
<p><code>define(`SMART_HOST', `10.0.0.116')dnl</code></p>
<p>Still, things didn&#8217;t seem to want to work.  My network administrator wasn&#8217;t evening seeing the mail attempts on our mail server so the problem was definitely on the webserver.<br />
Turns out (as these things often are) that it was a dumb syntax problem.  The following change fixed everything:</p>
<p><code>define(`SMART_HOST', `[10.0.0.116]')dnl</code></p>
<p>Hope this helps if you are having a similar problem.</p>


<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (7.06439)--></li>
		<li><a href="http://www.davidschultz.org/2008/10/16/how-to-setup-a-linux-cronjob-in-3-steps/" rel="bookmark">How to setup a linux cronjob in 3 steps</a><!-- (6.26502)--></li>
		<li><a href="http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/" rel="bookmark">Phpmyadmin error: &#8220;Cannot start session without errors&#8221;</a><!-- (5.73733)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Phpmyadmin error: &#8220;Cannot start session without errors&#8221;</title>
		<link>http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/</link>
		<comments>http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 15:12:09 +0000</pubDate>
		<dc:creator>David Schultz</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/</guid>
		<description><![CDATA[I have been trying to get phpmyadmin working on my Fedora 8 server i&#8217;ve been setting up, and struggled for the past day or so on this error: Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Turns out it&#8217;s very easy [...]

<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/" rel="bookmark">Sendmail says: stat=Deferred: Connection reset</a><!-- (8.29688)--></li>
		<li><a href="http://www.davidschultz.org/2009/11/12/how-to-install-google-affiliate-pixel-tracking-code-in-magento/" rel="bookmark">How to install Google Affiliate pixel tracking code in Magento</a><!-- (4.39934)--></li>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (4.25633)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>I have been trying to get <a href="http://www.phpmyadmin.net/">phpmyadmin</a> working on my Fedora 8 server i&#8217;ve been setting up, and struggled for the past day or so on this error:</p>
<blockquote><p>Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.</p></blockquote>
<p>Turns out it&#8217;s very easy to fix.  First thing you&#8217;ll want to do is have a look at your error logs.  For me this was in /var/log/lighttpd/error.log (<a href="http://www.lighttpd.net/">i&#8217;m using lighttpd</a> instead of Apache).  Have a look at your error log and you will probably see errors referencing permission errors writing to your session directory.  </p>
<p>Simply chmod 777 that directory and you should be good to go.  </p>


<h3>Related Posts:</h3>
<ol>
		<li><a href="http://www.davidschultz.org/2008/05/05/sendmail-says-statdeferred-connection-reset/" rel="bookmark">Sendmail says: stat=Deferred: Connection reset</a><!-- (8.29688)--></li>
		<li><a href="http://www.davidschultz.org/2009/11/12/how-to-install-google-affiliate-pixel-tracking-code-in-magento/" rel="bookmark">How to install Google Affiliate pixel tracking code in Magento</a><!-- (4.39934)--></li>
		<li><a href="http://www.davidschultz.org/2008/03/04/how-to-setup-a-static-route-in-osx-leopard/" rel="bookmark">How to setup a static route in OSX Leopard</a><!-- (4.25633)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.davidschultz.org/2008/03/31/phpmyadmin-error-cannot-start-session-without-errors/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.846 seconds -->
