# Run Gateway Script Once Daily

**URL:** <https://forum.inductiveautomation.com/t/run-gateway-script-once-daily/16050>\
**Category:** Ignition\
**Tags:** ignition78, ignition79, scripting\
**Created:** [November 20, 2017, 12:56am UTC](https://forum.inductiveautomation.com/t/run-gateway-script-once-daily/16050 "2017-11-20T00:56:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert1](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@robert1](https://forum.inductiveautomation.com/u/robert1)\
**Post date:** [November 20, 2017, 12:56am UTC](https://forum.inductiveautomation.com/t/run-gateway-script-once-daily/16050/1 "2017-11-20T00:56:30Z")

</div>

Hello-

I’d like for a gateway script to run once per day at a specific time. With the built-in options, it looks like I can only use a “timer script” to run on a 24hr delay to accomplish this, but this doesn’t let me choose which time the script should run (i’m stuck trying to get the delay timer started at approximately when I want it to run).

What would be the best way to do this? I’d like the script to run at 2am every night, for instance.

---

<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:** [November 20, 2017, 1:39am UTC](https://forum.inductiveautomation.com/t/run-gateway-script-once-daily/16050/2 "2017-11-20T01:39:38Z")

</div>

This was recently discussed in [this thread](http://forum.inductiveautomation.com/t/create-global-event-based-on-time-of-day/15975).

---

<div class="post-metadata">

**Author:** ![robert1](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@robert1](https://forum.inductiveautomation.com/u/robert1)\
**Post date:** [November 20, 2017, 2:00am UTC](https://forum.inductiveautomation.com/t/run-gateway-script-once-daily/16050/3 "2017-11-20T02:00:46Z")

</div>

Thanks! That strategy makes sense, I will definitely do that. I did make an attempt to search forum before posting, I guess I was not using the right keywords.
