Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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