<?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"
	>
<channel>
	<title>Comments on: WordPress Backup Shell Script</title>
	<atom:link href="http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-&amp;seed_title=WordPress+Backup+Shell+Script</link>
	<description>Smart Guy, Dumb Code</description>
	<pubDate>Fri, 25 Jul 2008 02:44:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Abhishek</title>
		<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-41476&amp;seed_title=WordPress+Backup+Shell+Script#comment-41476</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Mon, 16 Jun 2008 16:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/#comment-41476</guid>
		<description>Hi , 

  I am new to shell scripting but i am stuck with the following issue , as i want to catch a python script error and if there is an error then echo eyx message: 
the shell script i wrote is 
#!/bin/sh

case "xyz" in 
    get_xml)
    	cd xyz
	 python2.5 hello_xml.pyc;
	 if [[ $? -ne "1" ]]; then
		echo "ERROR"
		exit
	else
		echo "Done"
	fi 
         ;; 

but issue is even the python script hello_xml.pyc throws an error the shell IF statement is not catching it , it always echo "done" only!!! in both case of failure and success. 
Can some one point me to correct direction.</description>
		<content:encoded><![CDATA[<p>Hi , </p>
<p>  I am new to shell scripting but i am stuck with the following issue , as i want to catch a python script error and if there is an error then echo eyx message:<br />
the shell script i wrote is<br />
#!/bin/sh</p>
<p>case &#8220;xyz&#8221; in<br />
    get_xml)<br />
    	cd xyz<br />
	 python2.5 hello_xml.pyc;<br />
	 if [[ $? -ne "1" ]]; then<br />
		echo &#8220;ERROR&#8221;<br />
		exit<br />
	else<br />
		echo &#8220;Done&#8221;<br />
	fi<br />
         ;; </p>
<p>but issue is even the python script hello_xml.pyc throws an error the shell IF statement is not catching it , it always echo &#8220;done&#8221; only!!! in both case of failure and success.<br />
Can some one point me to correct direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Message in a bottle&#8230;. : Blog Archive : Script per fer una copia de seguretat diaria del WordPress</title>
		<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-21220&amp;seed_title=WordPress+Backup+Shell+Script#comment-21220</link>
		<dc:creator>Message in a bottle&#8230;. : Blog Archive : Script per fer una copia de seguretat diaria del WordPress</dc:creator>
		<pubDate>Sat, 31 Mar 2007 18:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/#comment-21220</guid>
		<description>[...] gfmorris he trobat aquest script de shell per a fer una copia de seguretat d&#8217;un blog amb WordPress.  [...]</description>
		<content:encoded><![CDATA[<p>[...] gfmorris he trobat aquest script de shell per a fer una copia de seguretat d&#8217;un blog amb WordPress.  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shout Head :: How to setup multi-blogging with wordpress 2.0</title>
		<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-3693&amp;seed_title=WordPress+Backup+Shell+Script#comment-3693</link>
		<dc:creator>Shout Head :: How to setup multi-blogging with wordpress 2.0</dc:creator>
		<pubDate>Sun, 18 Jun 2006 22:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/#comment-3693</guid>
		<description>[...] I use this shell script run as a cron job and save the files the same way. [...]</description>
		<content:encoded><![CDATA[<p>[...] I use this shell script run as a cron job and save the files the same way. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codefuture.net thought repository</title>
		<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-1506&amp;seed_title=WordPress+Backup+Shell+Script#comment-1506</link>
		<dc:creator>codefuture.net thought repository</dc:creator>
		<pubDate>Sat, 11 Mar 2006 15:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/#comment-1506</guid>
		<description>&lt;strong&gt;Wordpress backup python script&lt;/strong&gt;


#!/usr/bin/env python
#
# Ported by Christian Wilcox from shell script found at:
# http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/
#
# Make sure to set appropriate values to vars dictionary
import os
import time
vars = {
    &#38;#8...</description>
		<content:encoded><![CDATA[<p><strong>Wordpress backup python script</strong></p>
<p>#!/usr/bin/env python<br />
#<br />
# Ported by Christian Wilcox from shell script found at:<br />
# <a href="http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/" rel="nofollow">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/</a><br />
#<br />
# Make sure to set appropriate values to vars dictionary<br />
import os<br />
import time<br />
vars = {<br />
    &amp;#8&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashanth Rao&#8217;s Weblog  &#187; Blog Archive   &#187; Wordpress backup python script</title>
		<link>http://gfmorris.org/feeder/?FeederAction=clicked&amp;feed=Comments+on+Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fgfmorris.org%2Farchives%2F2004%2F04%2F29%2Fwordpress-backup-shell-script%2F%23comment-1367&amp;seed_title=WordPress+Backup+Shell+Script#comment-1367</link>
		<dc:creator>Prashanth Rao&#8217;s Weblog  &#187; Blog Archive   &#187; Wordpress backup python script</dc:creator>
		<pubDate>Mon, 04 Apr 2005 20:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/#comment-1367</guid>
		<description>[...] p python script 	#!/usr/bin/env python # # Ported by Christian Wilcox from shell script found at: # http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/ # # Make sure to set appropriate values to vars dictionary 	import os import ti [...]</description>
		<content:encoded><![CDATA[<p>[...] p python script 	#!/usr/bin/env python # # Ported by Christian Wilcox from shell script found at: # <a href="http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/" rel="nofollow">http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script/</a> # # Make sure to set appropriate values to vars dictionary 	import os import ti [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
