I need to execute "sudo" commands via CoDeSys 3.5 SP 19 P5 using the "SysProcessExecuteCommand2" function. Commands without sudo are no problem, but as soon as sudo is used in a .sh or a single command, it does not work. Command=AllowAll is entered under "SysProcess" in CODESYSControl.cfg. Nevertheless it does not work.
Does anyone know what the problem could be?
Greetings, Thomas
Last edit: Thomas@Moba 2024-02-01
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I need to execute "sudo" commands via CoDeSys 3.5 SP 19 P5 using the "SysProcessExecuteCommand2" function. Commands without sudo are no problem, but as soon as sudo is used in a .sh or a single command, it does not work. Command=AllowAll is entered under "SysProcess" in CODESYSControl.cfg. Nevertheless it does not work.
Does anyone know what the problem could be?
Greetings, Thomas
Last edit: Thomas@Moba 2024-02-01
just use the command without sudo then it will work!