You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2012/06/28 10:19:17 UTC
svn commit: r823576 - in /websites/production/camel/content:
cache/main.pageCache exec.html
Author: buildbot
Date: Thu Jun 28 08:19:16 2012
New Revision: 823576
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/exec.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/exec.html
==============================================================================
--- websites/production/camel/content/exec.html (original)
+++ websites/production/camel/content/exec.html Thu Jun 28 08:19:16 2012
@@ -146,7 +146,7 @@ from(<span class="code-quote">"direct:ex
</pre>
</div></div>
-<h4><a shape="rect" name="Exec-Executingjava"></a>Executing java</h4>
+<h4><a shape="rect" name="Exec-Executing%7B%7Bjava%7D%7D"></a>Executing <tt>java</tt></h4>
<p>The example below executes <tt>java</tt> with 2 arguments: <tt>-server</tt> and <tt>-version</tt>, provided that <tt>java</tt> is in the system path. </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
@@ -183,6 +183,13 @@ from(<span class="code-quote">"direct:ex
});
</pre>
</div></div>
+<h4><a shape="rect" name="Exec-Executing%7B%7Becho%7D%7D%28Windows%29"></a>Executing <tt>echo</tt> (Windows)</h4>
+<p>Commands such as <tt>echo</tt> and <tt>dir</tt> can be executed only with the command interpreter of the operating system. This example shows how to execute such a command - <tt>echo</tt> - in Windows.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:exec"</span>).to(<span class="code-quote">"exec:cmd?args=/C echo echoString"</span>)
+</pre>
+</div></div>
<h3><a shape="rect" name="Exec-SeeAlso"></a>See Also</h3>
<ul><li><a shape="rect" href="configuring-camel.html" title="Configuring Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" title="Endpoint">Endpoint</a></li><li><a shape="rect" href="getting-started.html" title="Getting Started">Getting Started</a></li></ul>