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 developer or whoever manages your website's code 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 Manage button under the Advanced tab
     

  3. Click Add Cron.

    Add Cron button in the Cron Job Manager
     

  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. For examples, see What Do I Put for the Cron Job Command?
  6. Click Add.

    Add cron job form with frequency, Common Settings, and Command fields
     

Your cron job is now scheduled. It will run your command at the frequency that you chose. To confirm that it ran, use View Last Run.

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, view the last run of, 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 option in the cron job ellipsis menu
     

  4. Make your changes.
  5. Click Update.

    Update button on the edit cron job form
     

To view the last run:

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

    View Last Run option in the cron job ellipsis menu
     

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

    View Last Run pop-up window with cron job run details
     

To delete:

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

    Delete option in the cron job ellipsis menu
     

  4. Click Delete again to confirm.

    Delete confirmation dialog
     

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

Loading...