Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar

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

avatar
Master Guru

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

avatar
Master Guru

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.

avatar

thank you very much , it is very helpful