5/16/2023 11:29 AM | |
Joined: 1/21/2013 Last visit: 11/18/2024 Posts: 3288 Rating: (511)
|
Hi qamerlynck, You can use StartProgram to run bash scripts outside of /opt/siemens/App_Restriction/. However, you must be aware of user permissions and the difference between scheduled tasks and runtime scripts. Scheduled tasks run as user "scs", while runtime scripts (dynamizations or events) run as "industrial". In the case of network shares, you also need to know that they are mounted by the system as user "industrial", where only that user has write access. This means that you can only access the network share within runtime scripts. Kind regards |
5/17/2023 9:27 AM | |
Joined: 1/21/2013 Last visit: 11/18/2024 Posts: 3288 Rating: (511)
|
Hi qamerlynck, If you need a script that can be run by the 'industrial' user, you should place it somewhere in '/home/industrial'. You can use the "WriteFile" method to write the bash script to the panel. Alternatively, you can use the File Manager and some external or network storage to transfer an already prepared script to the Panel. Once the script file is available, you can run it using the "StartProgram" method. Depending on the number of files to be deleted, you can also consider using the "DeleteFile" or "DeleteDirectory" methods. Kind regards |
This contribution was helpful to1 thankful Users |
Follow us on