Hi there,
Is there a way to run "composite command" like
ps aux | grep x
via the ProcessService bean?
I am trying to get this done for a while and tried different ways of passing it to the bean. Single string (getting -1 return code), array of strings (all gets probably escaped as and passed as param) etc., whatever we found the API offeres but the pipe seems to be blocker in any of my trial.
On the other hand, any command without the pipe works like a charm, invoked in different ways.
Thanks
Community moderators have prevented the ability to post new answers.
Not directly, no. But you can put that command into a file and run it using a shell interpreter via ProcessService. Then it will "just work".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.