H,
我正在尝试找出使用 mule 在 UNIX 框中执行命令/脚本文件的最佳方法。
有人可以确认这是否是通过 mule 在 unix 中执行命令的正确方法吗?
<script:component>
<script:script engine="groovy">
def command = "echo hello|/usr/lib/sendmail -v test@test.com"
println "$command"
def cmd = command.execute()
</script:script>
</script:component>
有没有其他方法可以在 unix 中执行 sh / command 文件?