Thursday, January 29, 2015

Apache Camel Exec - Run Executables

Assume you want to run an executable, you can utilize Camel's Exec component.
Such as:
exec://sh?args=-c+%22./someexec%22
It's pretty easy.

Sometimes you may get error message like "cannot execute binary file". Run the "file" command to check the executable's detail information.

If you get something like the following:
someexec: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
It means that your executable is 64 bits but you're running it on a 32-bit OS.



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

No comments:

Post a Comment