# Using .cron in TICK script

**URL:** <https://community.influxdata.com/t/using-cron-in-tick-script/6566>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [September 12, 2018, 2:20pm UTC](https://community.influxdata.com/t/using-cron-in-tick-script/6566 "2018-09-12T14:20:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [September 12, 2018, 2:20pm UTC](https://community.influxdata.com/t/using-cron-in-tick-script/6566/1 "2018-09-12T14:20:06Z")

</div>

Hi,

Is there any more documentation regarding using .cron in a tick script?

I’m trying to run a batch script at the same time each morning but can’t get the .cron part to work. I’ve got it set to every 5 minutes at the moment and the batch doesn’t even process any data.

If i remove the cron part and use the window node with .period and .every then i get an alert. I’ve checked the documention but I can find much about it.

[Cron section in documentation](https://docs.influxdata.com/kapacitor/v1.5/nodes/query_node/#cron)

It mentions a github repository, do i need to import this git hub repo in order for this to work or not?

thanks

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [September 13, 2018, 2:10pm UTC](https://community.influxdata.com/t/using-cron-in-tick-script/6566/2 "2018-09-13T14:10:01Z")

</div>

Never mind. I just used Ubuntus crontab instead. The .cron function doesn’t seem to do anything when i use it, it just stops the batch query from processing.

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [September 13, 2018, 2:37pm UTC](https://community.influxdata.com/t/using-cron-in-tick-script/6566/3 "2018-09-13T14:37:41Z")

</div>

Found the links in [this post](https://community.influxdata.com/t/kapacitor-task-on-demand-aka-launched-only-manually/3145) helpful if anyone else is struggling with the .cron function in Kapacitor.
