Hey Guys:
I have a python file and a shell file which are both executable and their folders are readable in the hierarchy, all of which are created under root user.
The problem is, I used a messagehandler to pass the command
and I am not able to create a foler through this shell ‘mkdir.sh’
I can run this shell using command ‘./mkdir.sh’ but when I run "system.util.sendRequest(‘project_name’, ‘pingCheck’) " in the Script Console, nothing happend.
It really bothers me cause I really need to be able to run shell command in linux through Ignition.
Thank you for your incoming help!! Sincerely!!.
Now I can ping an ip using your method. I really appreciate your help!! Thank you a lot!!!
On the other hand, I think I still need my gateway to execute some linux command some day in the future. So it is important for me to figure out how to control the ‘system.util.execute’ to run a python script or a shell script.