Shell script runs in designer but not client


I’m trying to execute a shell script to take an image. When I run the following code in the Designer it works but when I run it from the client nothing happens. Both processes run under the same user and that user has full rwx permissions on the script file. It runs fine in the terminal as well. Any suggestions?

from subprocess import call
call("sh /home/krn/Camera/", shell=True)

This is running from an Ignition 7.7.5 gateway. The client is running on Ubuntu 16.04 LTS.

Have you tried using system.util.execute?

Something like:

system.util.execute(["sh", "/home/krn/Camera/", "shell=True"])

Not sure if you would need the “shell=True” argument.

Also, where are you running the Designer? Is it on the same box that runs the client?