Loading...

Knowledge Base

How do I Create and Manage a Cron Job in Customer Portal

Cron jobs allow you to run scheduled commands automatically at specific times. They are commonly used for maintenance tasks and other unattended server processes.

A working knowledge of Linux commands is recommended before using cron jobs. Review any script with your hosting administrator before adding it as a cron job.

For more information about cron, see:

This article discusses the following topics.

How to create a Cron Job

  1. Log in to your Customer Portal.
  2. Go to Websites from the left navigation menu.
  3. Click Manage Site next to the website you want to manage.

    Edit Site button
     

  1. Click the Advanced tab.
  2. Under Cron Jobs, click Manage.

    Cron Jobs
     

  3. Click Add Cron.

    Add Cron Jobs
     

  4. Select a frequency from the drop-down menu or choose a preset from Common Settings (for example, every 15 minutes or once a year).
  5. Enter the command in the Command field.
  6. Click Add.

    Add Cronjob
     

Congrats on creating your first Cron Job! You've successfully set it up to run a file at the specified time and date with your chosen frequency.

How to edit, view the last run, and delete a Cron Job

Now that you know how to add Cron Jobs in your customer portal, here's how you can edit or delete them in your Cron Job Manager.

To edit:

  1. Locate the cron job you want to modify.
  2. Click the vertical ellipsis (⋮) menu.
  3. Select Edit.

    Edit Cronjob
     

  4. Make your changes.
  5. Click Update.

    Edit Cronjob
     

To view the last run:

  1. Locate the cron job.
  2. Click the vertical ellipsis (⋮) menu.
  3. Select View Last Run.

    View Last Run
     

  4. Review the information displayed in the pop-up window.

    View Last Run
     

To delete:

  1. Locate the cron job you want to remove.
  2. Click the vertical ellipsis (⋮) menu.
  3. Select Delete.

    delete-cron-job
     

  4. Click Delete again to confirm.

    delete-cron-job-confirmation
     

How can we help you? Please contact us via phone or chat if you need assistance.

Loading...