<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>carlos-m.net &#187; sh</title>
	<atom:link href="http://www.carlos-m.net/category/code/sh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.carlos-m.net</link>
	<description>Carlos Macasaet 2.0</description>
	<lastBuildDate>Thu, 10 Nov 2011 05:12:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license>		<item>
		<title>run_and_log</title>
		<link>http://www.carlos-m.net/2005/07/12/run_and_log/</link>
		<comments>http://www.carlos-m.net/2005/07/12/run_and_log/#comments</comments>
		<pubDate>Tue, 12 Jul 2005 04:06:49 +0000</pubDate>
		<dc:creator>Los</dc:creator>
				<category><![CDATA[sh]]></category>

		<guid isPermaLink="false">http://www.carlos-m.net/2005/07/12/run_and_log/</guid>
		<description><![CDATA[<p>[code] #!/bin/sh</p> <p># # Runs a file and stores output (if any) to log files. Meant to be run # by cron jobs. # -Los # http://www.carlos-m.net/ #</p> <p>unset PATH DATE=/bin/date SH=/bin/sh CAT=/bin/cat RM=/bin/rm ECHO='/bin/echo'</p> <p>TMPDIR=$HOME/tmp</p> <p>TMPFILE=$TMPDIR/`$DATE +%Y%m%d%H%M%S`.$$ TMPLOG=$TMPFILE.log TMPERR=$TMPFILE.err</p> <p>LOGDIR=$HOME/var/log LOGFILE=$LOGDIR/cron.log ERRFILE=$LOGDIR/cron.err</p> <p>TORUN=$@</p> <p>$SH $TORUN > $TMPLOG 2> $TMPERR # only run Bourne Shell [...]]]></description>
		<wfw:commentRss>http://www.carlos-m.net/2005/07/12/run_and_log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

