# Shell script runs in designer but not client

**URL:** <https://forum.inductiveautomation.com/t/shell-script-runs-in-designer-but-not-client/12019>\
**Category:** Archived Topics\
**Created:** [August 9, 2016, 7:42pm UTC](https://forum.inductiveautomation.com/t/shell-script-runs-in-designer-but-not-client/12019 "2016-08-09T19:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polynomial](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Polynomial](https://forum.inductiveautomation.com/u/Polynomial)\
**Post date:** [August 9, 2016, 7:42pm UTC](https://forum.inductiveautomation.com/t/shell-script-runs-in-designer-but-not-client/12019/1 "2016-08-09T19:42:11Z")

</div>

Hello,

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?

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

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

---

<div class="post-metadata">

**Author:** ![pphillips](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pphillips](https://forum.inductiveautomation.com/u/pphillips)\
**Post date:** [August 9, 2016, 10:31pm UTC](https://forum.inductiveautomation.com/t/shell-script-runs-in-designer-but-not-client/12019/2 "2016-08-09T22:31:44Z")

</div>

Have you tried using system.util.execute?

Something like:

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

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

---

<div class="post-metadata">

**Author:** ![mgross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mgross/32/3311_2.png) [@mgross](https://forum.inductiveautomation.com/u/mgross)\
**Post date:** [August 10, 2016, 2:17pm UTC](https://forum.inductiveautomation.com/t/shell-script-runs-in-designer-but-not-client/12019/3 "2016-08-10T14:17:25Z")

</div>

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