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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Did you manage to solve the issue?
No, I have not figured out a way to resolve this issue yet.
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?
tried on version CS 18 SP4 with targeter 4.7.0.0?