Support Questions
Find answers, ask questions, and share your expertise

How to Execute an external binary file and pass the flowFiles as arguments of the binary File

Solved Go to solution
Highlighted

How to Execute an external binary file and pass the flowFiles as arguments of the binary File

Hello All,

I have a project that collect files in a directory and i create i binary that transform the file passed in argument

ex : ./myBinary <theFile> if execute it in as a shell command ....

but i want to integrate it in the nifi and do automaticaly the transformation for every files that arrives in the directory.

Thanks for advance for your answers.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Execute an external binary file and pass the flowFiles as arguments of the binary File

You could setup ListFile processor to periodically monitor the directory, and send the listings to an ExecuteCommand processor.

The command to execute would be ./yourBinary ${path}/${filename}"

The path and filename variables come from the flow files produced by ListFile.

View solution in original post

2 REPLIES 2

Re: How to Execute an external binary file and pass the flowFiles as arguments of the binary File

You could setup ListFile processor to periodically monitor the directory, and send the listings to an ExecuteCommand processor.

The command to execute would be ./yourBinary ${path}/${filename}"

The path and filename variables come from the flow files produced by ListFile.

View solution in original post

Highlighted

Re: How to Execute an external binary file and pass the flowFiles as arguments of the binary File

thank you very much , it is very helpful