# System.util functions not working in Perspective?

**URL:** <https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131>\
**Category:** Ignition Early Access\
**Created:** [May 28, 2020, 5:10pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131 "2020-05-28T17:10:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [May 28, 2020, 5:10pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/1 "2020-05-28T17:10:22Z")

</div>

I’ve been trying to use the system.util.execute function as an action to a button, but it doesn’t appear to be working. I was trying to use it to kill the chrome using “taskkill”. I also tried to use it to launch the cmd.exe based on some other posts I found in the forum, but it doesn’t seem to work for me. As a last test, I tried system.util.beep() and even that wouldn’t work so I don’t think its a syntax issue with me execute parameters.

Is there any known issue with this in Perspective? It looks like .beep and .execute should both work in perspective sessions (.exit says only Vision).

I was testing this by using a Chrome window “Client” in a VM session if that makes any difference. I just saw another post that maybe indicates the system.util functions won’t work on Clients in Perspective - is that true?

---

<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:** [May 28, 2020, 5:13pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/2 "2020-05-28T17:13:06Z")

</div>

Those functions would be executing on the gateway, not the computer with the Perspective session open. They may be working but not how you expect.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [May 28, 2020, 5:37pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/3 "2020-05-28T17:37:28Z")

</div>

Ok, so is there any way to execute anything on the clients then? For instance, chrome is in kiosk mode and I want to shut it down to exit the Perspective session on that client via a button or something in a view.

---

<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:** [May 28, 2020, 5:39pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/4 "2020-05-28T17:39:05Z")

</div>

No, there’s not.

You’ve got to remember that when you’re using Perspective you’re dealing with web technologies. Imagine if a random website could close your browser or run (arbitrary non-JS) code on your computer?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 28, 2020, 6:16pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/5 "2020-05-28T18:16:37Z")

</div>

Fun fact: since `system.util.beep()` only runs on the Gateway, and you didn’t hear a beep, there’s a decent chance you’re driving someone somewhere insane as they look for the source of a randomly-timed beep.

---

<div class="post-metadata">

**Author:** ![kyle.demerath](https://avatars.discourse-cdn.com/v4/letter/k/5e9695/32.png) [@kyle.demerath](https://forum.inductiveautomation.com/u/kyle.demerath)\
**Post date:** [May 28, 2020, 6:36pm UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/6 "2020-05-28T18:36:35Z")

</div>

Good thing the gateway is in a basement and most people are working from home anyway then!

---

<div class="post-metadata">

**Author:** ![Maria\_P](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Maria\_P](https://forum.inductiveautomation.com/u/Maria_P)\
**Post date:** [July 15, 2022, 9:49am UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/7 "2022-07-15T09:49:25Z")

</div>

Hi, I’m trying to execute system.util.beep() also. I’ve added this line on a session event that is currently working (on barcodescann) but seems it does not work.

```auto
system.tag.writeAsync(['[default]FullTagPath'], [data.text]) #WORKS FINE
system.util.beep() #DOES NOT WORK
system.perspective.vibrateDevice(3000) #WORKS FINE

```

I’ve tried also to put the second line into a gateway event (timer) but it does not work neither.  
how should I use that?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 15, 2022, 10:30am UTC](https://forum.inductiveautomation.com/t/system-util-functions-not-working-in-perspective/35131/8 "2022-07-15T10:30:08Z")

</div>

It is trying to make the gateway beep, not the client. If your gateway has a speaker, go listen there.
