Unable to launch system command in recipe

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Minux
Posts: 29
Joined: 26 Oct 2014 13:06

Unable to launch system command in recipe

Post by Minux »

Hello; i'm trying to do a plugin for amazon dash button.
I'm not able to launch a node script; i'm getting this error
Error: This command is denied by policy
at Error (native)
at DashButton.init (automation/userModules/DashButton/index.js:39:126)

I have updated .syscommand file
20:06 pi@raspberrypi /opt/z-way-server/automation % cat .syscommands
/usr/bin/raspistill
/bin/ping
/bin/sh
/usr/bin/node
/usr/bin/sudo
/etc/alternatives/node
/opt/z-way-server/automation/userModules/DashButton/node/dashbutton.js
ping
grep

index.js command :
system('node /opt/z-way-server/automation/userModules/DashButton/node/dashbutton.js', device, self.config.login, self.config.password);

Do you see any reason ?
thx
Post Reply