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
- Log in to PD Panel and open your website.
- Click Add cron job.
- 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. - 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.