Skip to main content

Scheduled tasks (cron)

Scheduled tasks (cron) automatically run a command or script at set times, e.g. every 5 minutes or every night. The number of tasks is limited by your plan. To find them, go to Panel → My services → [your hosting service] → Scheduled tasks.

The "Add a new scheduled task" window

Creating a task​

  1. Click Add scheduled task.
  2. Fill in the schedule fields Minute, Hour, Day, Month, Day of week (* means "any") and Command.
  3. Click Add.

In the schedule you can use , (several values, 1,15,30), - (a range, 1-5) and / (a step, */5 – every 5). A handy way to build and check a schedule is crontab.guru – it tells you in words when the task will run. Examples:

  • */5 * * * * – every 5 minutes;
  • 0 3 * * * – every day at 03:00;
  • 0 8 * * 1-5 – on weekdays at 08:00.

Command examples​

php /home/[username]/domains/[domain]/public_html/script.php
curl --silent https://[domain]/cron.php > /dev/null

The first runs a PHP script directly on the server; the second opens an address over HTTP. To change a task, click Edit task; to remove it, click Delete task.