"exec" Permission denied

555 views
Skip to first unread message

David Hansson

unread,
May 18, 2016, 3:26:31 PM5/18/16
to Node-RED
I am trying to execute a python script that makes a file. I get an error message.

python /home/pi/engrave-lines.py -X7.5 -x5 -i'123' -Y12.75 -y5.25 -S0.4 -s0.5 -Z2 -D0.1 -0'test' > test.ngc

{ "payload": "/bin/sh: 1: cannot create test.ngc: Permission denied\n", "_msgid": "93dad0c2.6c253" }

{ "payload": { "killed": false, "code": 2, "signal": null, "cmd": "/bin/sh -c python /home/pi/engrave-lines.py -X7.5 -x5 -i'123' -Y12.75 -y5.25 -S0.4 -s0.5 -Z2 -D0.1 -0' test2a ' > test.ngc" }, "_msgid": "93dad0c2.6c253" }

Greatful for information that can help me with my issue.

Dave C-J

unread,
May 18, 2016, 4:06:39 PM5/18/16
to node...@googlegroups.com
it runs the command relative to the node.js installation which is in /usr/lib/node_modules.  so is only accessible by root.
So easiest way is to fully path the file you want to create - eg > /home/pi/mynewfile.ngc

David Hansson

unread,
May 19, 2016, 1:29:39 AM5/19/16
to node...@googlegroups.com
Super. Works now. Thank you!

2016-05-18 22:06 GMT+02:00 Dave C-J <dce...@gmail.com>:
it runs the command relative to the node.js installation which is in /usr/lib/node_modules.  so is only accessible by root.
So easiest way is to fully path the file you want to create - eg > /home/pi/mynewfile.ngc

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/7l9zeyNL2O4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages