Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

SysProcess Execute Command unable to run commands with special characters

jackm
2022-12-01
2023-04-22
  • jackm - 2022-12-01

    Hello,

    I am using SysProcessExecuteCommand to run linux commands through Codesys, and have no issues when Command=AllowAll. However, when I try to limit the commands allowed to execute, any commands with a special charater (ex. "*", ";", or "|") no longer works. I receive a pResult of 25 (INT), which from my research means "No access rights for this operation".

    Just as an example, the command 'find /Test_Folder/*.v' would execute fine with Command=AllowAll, but will not execute when given a Command.0=find instead. The find command will still execute in both situations if the * is removed.

    Below are what I have written in the CODESYSCONTROL.cfg file:
    [SysProcess]
    Command.0=cd
    Command.1=ls
    Command.2=find
    Command.3=iptables
    Command.4=echo
    Command.5=touch
    Command.6=printf
    Command.7=ftp
    Command.8=|
    Command.9=;
    Command.10=*
    Command.11=\
    *
    Command.12=\;
    Command.13=\|

    I am currently using Codesys V3.5 SP16 Patch 4 and running version 3.6.16.0 of the SysProcess Implementation Library. The device I'm running is CODESYS Control for Linux SL

    Can I get help on how to allow the use of special characters in my commands?

    Thanks,

     

    Last edit: jackm 2022-12-04
  • tomas111 - 2022-12-02

    Did you manage to solve the issue?

     
  • jackm - 2022-12-02

    No, I have not figured out a way to resolve this issue yet.

     
  • tomas111 - 2022-12-03

    I have a general problem with temperature. Raspberry 4. I did everything as in the settings but does not show. Maybe I'm editing the file in the wrong way?

     
  • tomas111 - 2023-04-22

    tried on version CS 18 SP4 with targeter 4.7.0.0?

     

Log in to post a comment.