Skip to main content

Running a scheduled command script

Updated today

Use Run as Scheduled to run a Command on a repeating schedule (Cron).


How scheduling works

When Run as Scheduled is selected, the command will run based on the Cron expression you provide.


Cron format

Cron uses 5 fields:

┌───────────── Minute (0 - 59) 

│ ┌─────────── Hour (0 - 23)

│ │ ┌───────── Day of Month (1 - 31)

│ │ │ ┌─────── Month (1 - 12 or JAN-DEC)

│ │ │ │ ┌───── Day of Week (0 - 6 or SUN-SAT)

│ │ │ │ │

* * * *. *

Common examples

  • Every minute: * * * * *

  • Every hour at 30: 30 * * * *

  • Every day at 5:00 AM: 0 5 * * *

  • Every Monday at 5:00 AM: 0 5 * * 1

  • First of every month at 5:00 AM: 0 5 1 * *


Activate the scheduled command

By default, you may be creating a command template. The schedule won’t run until the command is activated.

  • Toggle Command Status on the template, or

  • Enable it later on the Command page.

Tip: If a schedule isn’t firing, first confirm the command is enabled (Command Status ON) and the device is online.

Did this answer your question?