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;&c:/batch2.bat)"/>
Camel Exec Linux Example
On Linux:<exec executable="sh" argument="-c "cd /product;./executable1;cd /customer;./executable2""/>
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.
No comments:
Post a Comment