"sudo"-Befehle ΓΌber die Funktion "SysProcessExecuteCommand2"

2024-02-01
2024-02-02
  • Thomas@Moba - 2024-02-01

    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
  • eschwellinger

    eschwellinger - 2024-02-02

    just use the command without sudo then it will work!

     

Log in to post a comment.