How to set up a cron job (scheduled task)

Skip to main content
Print

How to set up a cron job (scheduled task)

In PD Panel, open your website, click Add cron job in the Cron jobs section, enter the command, choose a schedule from the presets or in cron format, give it a name and, if you like, an address to email the output to.

Applies to: PD Panel web hosting and WordPress hosting plans.

Add a cron job

  1. Log in to PD Panel and open your website.
  2. Click Add cron job.
  3. Fill in the Command, the Schedule (a preset or cron format, for example 0 3 * * * for 3am daily), a Name, and optionally Email output to.
  4. Click Add.

Good to know

  • Times are in UTC, so 3am UTC is 3am in winter and 4am in British Summer Time.
  • Each run stops after 1 hour.
  • A run that is missed isn’t caught up later.

Questions

How do I know it ran?

Set Email output to: you get an email when a run prints something or fails.

Are cron jobs backed up?

Yes. They’re in every daily backup and can be restored on their own.

More about PD Panel hosting.

Table of Contents

Get your website online with PD Hosting

UK hosting, domains and support from a real team. From a first site to a full server.

Terms and Conditions  ·  Privacy Policy

PD Hosting is the trading name of Projektif Digital Ltd, registered in England and Wales, company number 12482555.