<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Passing file name to bash script in nifi? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/362030#M238696</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102911"&gt;@phaelax&lt;/a&gt;&amp;nbsp; &amp;nbsp;ExecuteScript ExecuteProcess ExecuteStreamCommand etc are some of the hardest configs in nifi.&amp;nbsp; It is very hard to give guidance without exact templates, configs, scripts, etc.&amp;nbsp; &amp;nbsp;That said,&amp;nbsp; i would recommend ExecuteScript and python over bash.&amp;nbsp; If that is interesting to. you, you should spend some time consuming the 3 part series on ExecuteScript by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;I believe the first part explains how to get flowfile attributes (filename) or flowfile content from previous processor flowfile (getFile) into the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html" target="_blank"&gt;https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/75545/executescript-cookbook-part-2.html" target="_blank"&gt;https://community.hortonworks.com/articles/75545/executescript-cookbook-part-2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/77739/executescript-cookbook-part-3.html" target="_blank"&gt;https://community.hortonworks.com/articles/77739/executescript-cookbook-part-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 14:52:45 GMT</pubDate>
    <dc:creator>steven-matison</dc:creator>
    <dc:date>2023-01-23T14:52:45Z</dc:date>
    <item>
      <title>Passing file name to bash script in nifi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/361315#M238557</link>
      <description>&lt;P&gt;I am uncertain on how to pass the file name from the GetFile process to a bash script so that we can call clamAV on it.&amp;nbsp; I then need the result (success|failure) of the script passed back to nifi so we can route the flow. I can't seem to understand how to pass the arguments correctly or if I'm even using the correct process; ExecuteStreamCommand or ExecuteProcess.&amp;nbsp; We had an sys architect designing this with us but he left, leaving behind a very complicated non-working example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought I had configured an ExecuteProcess correctly but it doesn't allow me to connect GetFile to it.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:17:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/361315#M238557</guid>
      <dc:creator>phaelax</dc:creator>
      <dc:date>2023-01-13T20:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Passing file name to bash script in nifi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/362030#M238696</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102911"&gt;@phaelax&lt;/a&gt;&amp;nbsp; &amp;nbsp;ExecuteScript ExecuteProcess ExecuteStreamCommand etc are some of the hardest configs in nifi.&amp;nbsp; It is very hard to give guidance without exact templates, configs, scripts, etc.&amp;nbsp; &amp;nbsp;That said,&amp;nbsp; i would recommend ExecuteScript and python over bash.&amp;nbsp; If that is interesting to. you, you should spend some time consuming the 3 part series on ExecuteScript by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;I believe the first part explains how to get flowfile attributes (filename) or flowfile content from previous processor flowfile (getFile) into the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html" target="_blank"&gt;https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/75545/executescript-cookbook-part-2.html" target="_blank"&gt;https://community.hortonworks.com/articles/75545/executescript-cookbook-part-2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/77739/executescript-cookbook-part-3.html" target="_blank"&gt;https://community.hortonworks.com/articles/77739/executescript-cookbook-part-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/362030#M238696</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-01-23T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Passing file name to bash script in nifi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/362064#M238704</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;That 3 part series on ExecuteScript was written by a very talented different Matt in this community&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 20:25:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Passing-file-name-to-bash-script-in-nifi/m-p/362064#M238704</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-01-23T20:25:14Z</dc:date>
    </item>
  </channel>
</rss>

