<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Executing System Commands with ColdFusion</title>
	<atom:link href="http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 15:53:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Executing System Commands with ColdFusion</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-1509</link>
		<dc:creator>Executing System Commands with ColdFusion</dc:creator>
		<pubDate>Wed, 02 Mar 2011 20:58:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-1509</guid>
		<description>[...] This entry has been updated! [...]</description>
		<content:encoded><![CDATA[<p>[...] This entry has been updated! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-149</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Thu, 18 Mar 2010 15:43:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-149</guid>
		<description>Thanks Ray, I&#039;ve added an update note.</description>
		<content:encoded><![CDATA[<p>Thanks Ray, I&#8217;ve added an update note.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-148</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Thu, 18 Mar 2010 14:20:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-148</guid>
		<description>I see that you wrote this back in 08. I _think_ 801 may have been out around then, but if it was not, then it certainly makes sense why you would need this workaround. :) I just worry that people will see this entry and think they can&#039;t capture errors in cfexecute.</description>
		<content:encoded><![CDATA[<p>I see that you wrote this back in 08. I _think_ 801 may have been out around then, but if it was not, then it certainly makes sense why you would need this workaround. <img src='http://blog.stannard.net.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I just worry that people will see this entry and think they can&#8217;t capture errors in cfexecute.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Camden</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-147</link>
		<dc:creator>Raymond Camden</dc:creator>
		<pubDate>Thu, 18 Mar 2010 14:19:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-147</guid>
		<description>I have to ask - why didn&#039;t you use errorVariable and errorFile? Unfortunately they were only documented in the 801 release notes (and missing from CF9!) but they provide support for capturing errors (either to a file or to a variable).</description>
		<content:encoded><![CDATA[<p>I have to ask &#8211; why didn&#8217;t you use errorVariable and errorFile? Unfortunately they were only documented in the 801 release notes (and missing from CF9!) but they provide support for capturing errors (either to a file or to a variable).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-146</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 19 Dec 2008 15:06:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-146</guid>
		<description>Thanks Kevan! That&#039;s exactly what I need.</description>
		<content:encoded><![CDATA[<p>Thanks Kevan! That&#8217;s exactly what I need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-145</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Fri, 19 Dec 2008 13:38:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-145</guid>
		<description>Hi Chris

I don&#039;t believe we can access the PID from Java without extending out into some native win32 code, but for a non-blocking solution you may be able to do something like this:

&lt;cfset cmd = &quot;... your command ...&quot;&gt;
&lt;cfset runtime = createObject(&quot;java&quot;, &quot;java.lang.Runtime&quot;)&gt;
&lt;cfset process = runtime.getRuntime().exec(cmd)&gt;

You could stores the &quot;process&quot; variable in your session or application scope and have access to it at a later time to terminate. However getting access to the standard or error output is difficult to achieve with this approach.</description>
		<content:encoded><![CDATA[<p>Hi Chris</p>
<p>I don&#8217;t believe we can access the PID from Java without extending out into some native win32 code, but for a non-blocking solution you may be able to do something like this:</p>
<p>&lt;cfset cmd = &quot;&#8230; your command &#8230;&quot;&gt;<br />
&lt;cfset runtime = createObject(&quot;java&quot;, &quot;java.lang.Runtime&quot;)&gt;<br />
&lt;cfset process = runtime.getRuntime().exec(cmd)&gt;</p>
<p>You could stores the &quot;process&quot; variable in your session or application scope and have access to it at a later time to terminate. However getting access to the standard or error output is difficult to achieve with this approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-144</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 19 Dec 2008 08:37:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-144</guid>
		<description>Is it possible to specify a timeout 0 (non-blocking mode) and capture the PID of the spawned process? I&#039;d like to run a short-lived server process and briefly interacts with Coldfusion, but I need the PID so I can terminate the process at the end of the request.</description>
		<content:encoded><![CDATA[<p>Is it possible to specify a timeout 0 (non-blocking mode) and capture the PID of the spawned process? I&#8217;d like to run a short-lived server process and briefly interacts with Coldfusion, but I need the PID so I can terminate the process at the end of the request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-143</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Mon, 02 Jun 2008 04:50:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-143</guid>
		<description>Hi Mark

Not sure. I have posted your question on riaforge as well:

http://systemcommand.riaforge.org</description>
		<content:encoded><![CDATA[<p>Hi Mark</p>
<p>Not sure. I have posted your question on riaforge as well:</p>
<p><a href="http://systemcommand.riaforge.org" rel="nofollow">http://systemcommand.riaforge.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Ireland</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-142</link>
		<dc:creator>Mark Ireland</dc:creator>
		<pubDate>Sat, 31 May 2008 19:35:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-142</guid>
		<description>Anyone know if this works on *nix, Solaris etc?</description>
		<content:encoded><![CDATA[<p>Anyone know if this works on *nix, Solaris etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevan Stannard</title>
		<link>http://blog.stannard.net.au/2008/03/26/executing-system-commands-with-coldfusion-2/comment-page-1/#comment-151</link>
		<dc:creator>Kevan Stannard</dc:creator>
		<pubDate>Wed, 07 May 2008 05:15:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-151</guid>
		<description>Russ, thanks for the suggestion - I will look into it.</description>
		<content:encoded><![CDATA[<p>Russ, thanks for the suggestion &#8211; I will look into it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

