# Gateway Scheduled script

**URL:** <https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [June 28, 2024, 6:09am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517 "2024-06-28T06:09:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_solanki](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Rahul\_solanki](https://forum.inductiveautomation.com/u/Rahul_solanki)\
**Post date:** [June 28, 2024, 6:09am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517/1 "2024-06-28T06:09:05Z")

</div>

I want to run a script at every 10 minutes from 1am to 7am and 3pm to 8 pm.  
Is this the correct way ?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/c/6c803b0dc26fdae8182324a476c00533485297d5.png)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2024, 6:38am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517/2 "2024-06-28T06:38:49Z")

</div>

Looks about right.  
Note that you can use `*/10` for "every 10 minutes", and `t1-t2` for a range between t1 and t2.  
Though it seems that unlike crontabs, it doesn't accept lists of ranges...

---

<div class="post-metadata">

**Author:** ![Rahul\_solanki](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Rahul\_solanki](https://forum.inductiveautomation.com/u/Rahul_solanki)\
**Post date:** [June 28, 2024, 6:42am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517/3 "2024-06-28T06:42:35Z")

</div>

ok Thanks  
Just making sure as I'm new with this  
The thing i provided will work as i intended to work it?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2024, 6:47am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517/4 "2024-06-28T06:47:38Z")

</div>

I'm not sure about one thing:  
Will it stop at 7pm, or 7:50 ?

I _ **THINK** _ it should stop at 7:50, but some testing might be in order, if you can't find that info in the docs.

---

<div class="post-metadata">

**Author:** ![Rahul\_solanki](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Rahul\_solanki](https://forum.inductiveautomation.com/u/Rahul_solanki)\
**Post date:** [June 28, 2024, 12:08pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-script/92517/5 "2024-06-28T12:08:34Z")

</div>

Yes I will stop at 7:50
