On MacOS I'm receiving the expected "Microsoft Access Database" result when 
using the file command, but I'm unsure about the cause of the unexpected 
behavior on the Linux system you mentioned earlier.
________________________________
From: James McMahon <[email protected]>
Sent: Sunday, November 5, 2023 1:58
To: users <[email protected]>
Subject: ExecuteStreamCommand fails to run file against flowfile

I am having some difficulty getting the file command to run from 
ExecuteStreamCommand, and am hoping someone can see my error.

At my linux command line,
file --brief myfile.mdb
returns
Microsoft Access Database
as expected.

I am reading files into a nifi flow, and trying to apply ExecuteStreamCommand 
to run the file command against them. I configured my processor like this:
Command Arguments      --brief;-
Command Path                /usr/bin/file
Ignore STDIN                   false
Argument Delimiter          ;
Output destination attribute  fType
Max Attribute Length          256

fType gets the value      data
for the mdb files, not Microsoft Access Database

How can I correct this? Can I configure my processor differently to get the 
file command to return the expected result? I'm hoping to avoid writing 
flowfile out to a /tmp directory by figuring out how to get file to run against 
the stream.
Thank you in advance.

Reply via email to