Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Running composite commands using the ProcessService

Tom Dostalik September 15, 2016

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 15, 2016

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".

TAGS
AUG Leaders

Atlassian Community Events