yep, you should be able to call a shell script directly like this...

jeevan.koteshwara wrote:
> 
> Hi,
>     I have a requirement, where I need to call a shell script (for zipping
> and unzipping files with associated passwords if any) from the route.
> 
> I have chosen exec component to do so. I have seen exec:java or exec:perl
> to execute respective java or perl files/scripts. Is there any direct way
> to execute the shell script using exec (similar to exex:java or exec:perl
> etc). Or do I need to provide the the file path of the shell script to be
> executed.
> 
> for ex:
> 
> from(src).to("exec:/opt/script/compress.sh");
> 
> Also, I am using ExecBinding.EXEC_COMMAND_ARGS to pass the arguments
> dynamically to the shell script.
> 
> Please suggest, is this approach is the best approach or not. Is there any
> other solutions available for the same.
> 
> Thanks and Regards,
> Jeevan Mithyantha.
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/Calling-shell-script-from-Camel-tp4794335p4795990.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to