Read the statement by Michael Teeuw here.
exec error: Error: Command failed: ?!
-
ok, i am not a linux erpert. i think the exec command execute a script, and its work with this file-attributes. you can test it. maybe its read the file and exec the commands in it. i’v checked the attributes with filezilla, was 644, not executable but it works.
the file-attributes are for the security of RPI & MM importend. thats is for later.
at the moment ist works without errors. i can send you my files for test !?
-
@stoffel not needed… exec should fail if the execute bit is not on…(it would be a security exposure to allow ‘anything’ to execute) but not my job
-
ok, what can i say. i’v test it with other config und it works also. its overide the old config with the new config and restart mm.
i not understand why, but it works. realy -
@stoffel I do this in MMM-Config, node_helper
exec("pm2 restart " + pm2_id);
after I get the id from pm2 info and find the entry that matches the path we are running under
-
i have test a lot with file attributes. not needed. magicMirror is not linux, its javascript. only the copy command and pm2 command in the exec function must linux conform. in the pm2 log you have sometimes error messages, but that comes from linux. so you have right, without x-flag its not executable, but MagicMirror ignore file attributes.
now i can cange all my configs with remote-control. for the moment i am finished this module. maybe later i have a new idea, ha,ha.