Hollis,

Yes, the “Command Arguments” field supports Apache NiFi Expression Language 
[1], so you can use an expression like:

-c;ssh [email protected] sh /opt/shell.hourly.sh ${now():toNumber()}

or

-c;ssh [email protected] sh /opt/shell.hourly.sh ${someAttr:plus(1)}

etc.

[1] https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html


Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jun 28, 2017, at 1:21 AM, Hollis <[email protected]> wrote:
> 
> Hi All,
>         I am trying using "ExecuteProces”to execute remote shell hourly.So my 
> properties is:
>         Command:  sh
>         Command Arguments:  -c;ssh [email protected] 
> <mailto:[email protected]> sh /opt/shell.hourly.sh 2017062816
>         Argument Delimiter:  ;
> 
>         In the command arguments, I want to pass different hour as showed  
> like '2017062816' in this hourly.That mean in the next hour I want to execute 
> this sh using command  '-c;ssh [email protected] <mailto:[email protected]> 
> sh /opt/shell.hourly.sh 2017062817'. So is there any variable support in nifi.
> 
> 
> Thanks!
> 
> 
> Best Regards,
> 
> Hollis
> 
> Software Engineering
> 
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to