# Run Project Script

**URL:** <https://forum.inductiveautomation.com/t/run-project-script/11726>\
**Category:** Ignition\
**Created:** [May 26, 2016, 3:20pm UTC](https://forum.inductiveautomation.com/t/run-project-script/11726 "2016-05-26T15:20:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.montresor](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andrea.montresor](https://forum.inductiveautomation.com/u/andrea.montresor)\
**Post date:** [May 26, 2016, 3:20pm UTC](https://forum.inductiveautomation.com/t/run-project-script/11726/1 "2016-05-26T15:20:06Z")

</div>

Hi,

I need to run a Project Script every 5 minutes.  
How can I do this?

I enclose a picture of my script.

Thanks,  
Andrea

---

<div class="post-metadata">

**Author:** ![Paolo.Mariani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paolo.mariani/32/3285_2.png) [@Paolo.Mariani](https://forum.inductiveautomation.com/u/Paolo.Mariani)\
**Post date:** [June 3, 2016, 11:25pm UTC](https://forum.inductiveautomation.com/t/run-project-script/11726/2 "2016-06-03T23:25:55Z")

</div>

You can call that from a client event timer script, set to run every 5 minutes.

---

<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:** [June 4, 2016, 1:36am UTC](https://forum.inductiveautomation.com/t/run-project-script/11726/3 "2016-06-04T01:36:27Z")

</div>

Two additional notes:

1. You need to put the code in a function in that script, and call the function from a timer event. The script itself runs on client startup, so it must define functions and variables to be available later.
2. Client event scripts run in every client, but not in the gateway. Gateway event scripts are what you want if you need the script to run even if no client is running, or if multiple clients running it would be a problem.
