# Create gateway scheduled scripts in a perspective client session

**URL:** <https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [March 31, 2023, 8:23am UTC](https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886 "2023-03-31T08:23:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [March 31, 2023, 8:23am UTC](https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886/1 "2023-03-31T08:23:42Z")

</div>

Hi,

Is there a way to create a gateway scheduled script in a perspective client session ?

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [March 31, 2023, 10:10am UTC](https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886/2 "2023-03-31T10:10:28Z")

</div>

I wouldn't want users to be able to write scripts and be able to affect the gateway.

What is the use case?

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [March 31, 2023, 10:21am UTC](https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886/3 "2023-03-31T10:21:51Z")

</div>

Our client want to start/stop remotely an MQTT device (automaton) depending on a scheduler. To start/stop we have to run a script.

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [March 31, 2023, 10:44am UTC](https://forum.inductiveautomation.com/t/create-gateway-scheduled-scripts-in-a-perspective-client-session/71886/4 "2023-03-31T10:44:00Z")

</div>

Then I would write a script that fires and does this action when the scheduler turns a tag on or off. If they remotely change the value of that tag, all that would happen is what you write in your script. I certainly wouldn't want a user to be able to write their own scripts.
