You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
I did a quick search and am surprised I didn't find anything relating to using variables in the commands executed by the exec node, unless I'm just missing something obvious? I'm trying to pass the current date as a parameter in a command. I guess I can always just create a bash script and do what I want there, but I thought this would be a feature of the exec node.
Mark Setrem
unread,
Mar 29, 2016, 2:30:09 PM3/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
If I understand what you want to do I think you are missing something obvious.
If you double click on the exec node you should see that you can append the contents of the msg.payload to the exec command.
Adam S
unread,
Mar 29, 2016, 2:37:06 PM3/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
That appears to work, but now I have an annoying warning that my command is blank. The time needs to be inserted in the middle of the command so I can't just append it. Something like the mustache template is what I'm looking for here.
Dave C-J
unread,
Mar 29, 2016, 2:42:59 PM3/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
You can add extra parameters after as well - using the extra parameters box...
Adam S
unread,
Mar 29, 2016, 2:52:06 PM3/29/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
That doesn't really help me unless you can explain how you're supposed to use it to insert the parameters in the middle of the command.