Execute commandline call from automation chaiin
I'm looking for a way to execute commandline calls within an automation chain for custom binary transformations. Can this be achieved with Automation Scripting the best solution? Thanks in advance for your help.
> echo hello hello > ls . .. hello.txt > pwd /var/lib/nuxeo/server/nxserver
So I'm afraid it is not what you are looking for.
There is also the Context.RunScript operation, but it is to manipulate the context variables with a script, not to run shell commands.
A solution would be to create your own Nuxeo operation where you run your shell commands with something like this:
Process p = Runtime.getRuntime().exec("shell command")
You can also set the shell command as a operation parameter.