camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Running a system command with Camel
Date Sun, 24 Nov 2013 15:22:19 GMT
There is an exec component
http://camel.apache.org/exec

On Sun, Nov 24, 2013 at 4:06 PM, Philippe de Rochambeau <phiroc@free.fr> wrote:
> Hello,
>
> I would like to pass arguments to a C application running on Linux from a Camel program,
wait a second after the application has finished printing to Standard Output, then check its
exit value (eg, 0, 1, etc.)
>
> For instance, .to(« c-application » , « param0 », « param1 », ).waitOneSecond().processExitValue()
>
> How can I do that in Camel DSL?
>
> Many thanks.
>
> Philroc
>
>
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message