Apache camel camel exec中参数的正确使用

Apache camel camel exec中参数的正确使用,apache-camel,Apache Camel,我无法理解执行以下操作的语法: bteq < /data/bteqs/test.bteq bteq

我无法理解执行以下操作的语法:

bteq < /data/bteqs/test.bteq
bteq
将camel exec与blueprint XML一起使用

我可能在这里遗漏了一些非常琐碎的东西——到目前为止,我已经尝试将整个“ 我还尝试通过使用eval来克服这个问题:

<to uri="exec:eval?args=&quot;bteq &lt; /data/bteqs/test.bteq&quot;"/>

但eval显然不适合exec,至少在我的操作系统上是这样:

2018-05-23 12:50:15,017 | INFO  | .xml-43_Worker-2 | bteq-test-route                  
| 43 - org.apache.camel.camel-core - 2.16.5 | ERROR :: Unable to execute 
command ExecCommand [args=[bteq < /data/bteqs/test.bteq], executable=eval, 
timeout=9223372036854775807, outFile=null, workingDir=null, 
useStderrOnEmptyStdout=false]
STACKTRACE :: org.apache.camel.component.exec.ExecException: Unable to 
execute command ExecCommand [args=[bteq < /data/bteqs/test.bteq], 
executable=eval, timeout=9223372036854775807, outFile=null, workingDir=null, 
useStderrOnEmptyStdout=false]
2018-05-23 12:50:15017 | INFO | xml-43 | u Worker-2 | bteq测试路线
|43-org.apache.camel.camel-core-2.16.5 |错误::无法执行
command ExecCommand[args=[bteq
只是一个猜测,但您可能必须将shell用作“运行时”来执行命令

<to uri="exec:sh?args=&quot;bteq &lt; /data/bteqs/test.bteq&quot;"/>