<?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>Digital-Traffic.net &#187; development</title>
	<atom:link href="http://digital-traffic.net/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://digital-traffic.net</link>
	<description>Public thoughts of a network administrator</description>
	<lastBuildDate>Sun, 31 Jan 2010 21:02:21 +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>Don&#8217;t forget StdErr</title>
		<link>http://digital-traffic.net/technology/dont-forget-stderr/</link>
		<comments>http://digital-traffic.net/technology/dont-forget-stderr/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 18:03:56 +0000</pubDate>
		<dc:creator>Brian Shacklett</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://digital-traffic.net/?p=107</guid>
		<description><![CDATA[I recently ran into an issue where a WSH script was calling an external executable and returning an exit code of 0 even though there had been an error running the external executable. The problem is that I was relying on oExec.StdOut.ReadAll() to block the script until the command had finished processing. The ReadAll() method [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into an issue where a WSH script was calling an external executable and returning an exit code of 0 even though there had been an error running the external executable. The problem is that I was relying on <code class="input">oExec.StdOut.ReadAll()</code> to block the script until the command had finished processing. The <code class="input">ReadAll()</code> method functions synchronously, so if the executable had been writing to StdOut, I would have been right. Unfortunately, I was neglecting the StdErr stream. So, not only did I miss the errors that the executable threw, the script didn&#8217;t block on the executable&#8217;s output, so I returned the exit code before the executable had actually finished running. The lesson here is to always think about StdErr no matter what you&#8217;re trying to accomplish.</p>
]]></content:encoded>
			<wfw:commentRss>http://digital-traffic.net/technology/dont-forget-stderr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
