Saturday, January 24, 2015

Camel Exec Command Script | Apache Camel Exec - Run Multiple Commands/Scripts at One Go

Camel Exec Windows Example

You could use the following settings to run multiple executables (including scripts) at one go using the Exec component.
On Windows:
<exec executable="cmd" argument="RAW(/c c:/batch1.bat;&amp;c:/batch2.bat)"/>

Camel Exec Linux Example

On Linux:
<exec executable="sh" argument="-c &quot;cd /product;./executable1;cd /customer;./executable2&quot;"/>
brookstone, free shipping

Camel Exec XML Example

If you use Java code instead of XML, you could simply replace '&' with '&' and '"' with '\"', and make them work.
Another thing I want to mention is that on Linux, it's better to run with './executable1' instead of 'executable1'.
Check more details here.


Create a Successful Online Store at Bigcommerce! Try it Free Now!

No comments:

Post a Comment