Celebrating our 30th year online · Est. 1997 Our story → Open a ticket Status

Home / Help Center / Websites & WordPress

Schedule tasks with cron jobs

Run a script automatically every few minutes, hours or days.

  1. In cPanel, open Advanced → Cron Jobs.
    Schedule tasks with cron jobs, step 1
  2. Pick a schedule from Common Settings (for example Once Per Hour) or set the minute, hour, day, month and weekday fields yourself.
  3. Enter the command. For a PHP script: /usr/local/bin/php /home/USERNAME/public_html/script.php
  4. Click Add New Cron Job. To stop the emails each run sends, add >/dev/null 2>&1 to the end of the command.

Tips

  • Please don't run heavy jobs more often than every 15 minutes on shared hosting.
  • WordPress tip: replace WP-Cron with a real cron job for more reliable scheduled posts.

Still stuck?

Our in-house team answers tickets 24/7.

Open a ticket

Related guides