<?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>PHP Trivandrum &#187; cron</title>
	<atom:link href="http://www.php-trivandrum.org/tag/cron/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-trivandrum.org</link>
	<description>Get addicted to PHP</description>
	<lastBuildDate>Tue, 22 Jun 2010 02:56:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL: Optimize all tables; Run using cron</title>
		<link>http://www.php-trivandrum.org/mysql/mysql-optimize-all-tables-run-using-cron/</link>
		<comments>http://www.php-trivandrum.org/mysql/mysql-optimize-all-tables-run-using-cron/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 17:31:17 +0000</pubDate>
		<dc:creator>jijutm</dc:creator>
				<category><![CDATA[Linux Shell]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=1040</guid>
		<description><![CDATA[I was looking for a optimize table script and finally stumbled upon some code which could be salvaged into a shell script. The full code is reproduced here for future reference.

#!/bin/bash&#160;
#-- I usually add the root username and password to the ~/.my.cnf
MYSQL_CMD='/usr/bin/mysql ' &#160;
$MYSQL_CMD -e "SELECT concat('OPTIMIZE TABLE ',TABLE_SCHEMA,'.',TABLE_NAME,';') as cmd FROM information_schema.TABLES WHERE TABLE_SCHEMA [...]]]></description>
		<wfw:commentRss>http://www.php-trivandrum.org/mysql/mysql-optimize-all-tables-run-using-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Needed a random timed cron; Got it</title>
		<link>http://www.php-trivandrum.org/uncategorized/needed-a-random-timed-cron-got-it/</link>
		<comments>http://www.php-trivandrum.org/uncategorized/needed-a-random-timed-cron-got-it/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 02:45:55 +0000</pubDate>
		<dc:creator>jijutm</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=886</guid>
		<description><![CDATA[Sorry this is nothing related to php, though I wanted to run a cron job or scheduled job at a random time, searching the Internet gave me lots of ideas but I found the apt solution only yesterday.

Create a shell script

#!/bin/bash

r=$(j=`dd if=/dev/urandom count=1 2> /dev/null &#124; cksum &#124; cut -f1 -d" "`; expr $j % [...]]]></description>
		<wfw:commentRss>http://www.php-trivandrum.org/uncategorized/needed-a-random-timed-cron-got-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
