# System.util.execute function query

**URL:** <https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776>\
**Category:** Ignition\
**Tags:** vision, perspective\
**Created:** [February 24, 2025, 12:59pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776 "2025-02-24T12:59:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinoth\_S](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@Vinoth\_S](https://forum.inductiveautomation.com/u/Vinoth_S)\
**Post date:** [February 24, 2025, 12:59pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776/1 "2025-02-24T12:59:00Z")

</div>

I'm using Ignition on Linux 22.04 (GPU)  
My objective is when i click a button from ignition's perspective-view I need to open a command prompt & go to some path where i have my some other camera-vision project (based on streamlit-python) & run that project

i try to use system.util.execute code but not working

so i take myself 2 steps back, now i just try to open command itself using following  
system.util.execute(['/bin/bash', '-c', 'gnome-terminal'])

Nothing happens  
Even for windows i try by following  
system.util.execute(['cmd.exe', '/k'])

still nothing happens  
i think if i manage to open up a command prompt then i may clear all the other mentioned above so give some deep insights & what i might miss?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 24, 2025, 1:00pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776/2 "2025-02-24T13:00:15Z")

</div>

When you run `system.util.execute` in a Perspective session it executes on the Gateway. It is not possible to execute code on the browser/client side.

---

<div class="post-metadata">

**Author:** ![Vinoth\_S](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@Vinoth\_S](https://forum.inductiveautomation.com/u/Vinoth_S)\
**Post date:** [February 24, 2025, 1:01pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776/3 "2025-02-24T13:01:08Z")

</div>

so is there any alternate ways to achieve it ? Any suggestions?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 24, 2025, 1:03pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776/4 "2025-02-24T13:03:41Z")

</div>

Your external project could start its own simple webserver that listens for HTTP requests that you make from Ignition using `system.net.httpClient`. Or you could use Vision instead.

---

<div class="post-metadata">

**Author:** ![Vinoth\_S](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@Vinoth\_S](https://forum.inductiveautomation.com/u/Vinoth_S)\
**Post date:** [February 24, 2025, 1:11pm UTC](https://forum.inductiveautomation.com/t/system-util-execute-function-query/102776/5 "2025-02-24T13:11:08Z")

</div>

you were right when i try it on vision it works fine  
Also works fine using system.perspective.navigate(url="xxxxxxxxx") if try after launch that external project on my browser & copied it's URL .
