Re: running multiple commands from a single ExecuteStreamCommand processor

2019-02-15 Thread Vijay Chhipa
Thanks Mark, that was very helpful. I have chained the commands now and writing the final output to stdout. Thanks again, Vijay > On Feb 13, 2019, at 2:34 PM, Mark Payne wrote: > > Vijay, > > No worries, this thread is fine. The processor will stream the contents of > the FlowFIle to the

Re: running multiple commands from a single ExecuteStreamCommand processor

2019-02-13 Thread Mark Payne
Vijay, No worries, this thread is fine. The processor will stream the contents of the FlowFIle to the Standard Input (StdIn) of the process that is generated. So it will go to the bash script. The bash script can do whatever it needs to do, pipe to another command, etc. Whatever is written to St

Re: running multiple commands from a single ExecuteStreamCommand processor

2019-02-13 Thread Vijay Chhipa
Mark, Thanks for your quick response, When calling bash script that has multiple commands, is there a single flow file generated after all commands are executed (accumulating output from each command) or multiple flow files generated per command line in the bash script. Sorry for tagging alon

Re: running multiple commands from a single ExecuteStreamCommand processor

2019-02-13 Thread Mark Payne
Vijay, This would be treated as arguments to a single command. One option would be to create a simple bash script that executes the desired commands and invoke that from the processor. Or, of course, you can chain together multiple processors. Thanks -Mark > On Feb 13, 2019, at 1:48 PM, Vija

running multiple commands from a single ExecuteStreamCommand processor

2019-02-13 Thread Vijay Chhipa
Hi, I have a ExecuteStreamCommand processor running a single command, (executing a -jar ) and it runs fine, I need to run the same command but with different arguments. My question is: Can I put multiple lines as command arguments and still have a single instance of the ExecuteStreamComm