TutorialscPanel

Setting a cron job in the cPanel interface

Learn how to set up a cron job in cPanel, step by step, to automate commands in Unix systems. Find out details about configuration and notification options.

Views 510Updated 1 anPublished on 14/02/2020by Cătălin Adrian

Introduction

  • A cronjob represents a command in Unix operating systems, which is executed at a certain time interval.
  • The commands used below are examples.

Requirements

  • Access to the cPanel control panel.

Steps to Follow

  • Once logged into the cPanel administration panel, look for the Advanced section in the displayed window and select Cron jobs from there

  • On the next page, you will be able to set the email address to which the cron job results should be sent, if desired, after which you press the Update Email button

  • After successfully saving the address, a confirmation message will appear.

  • To set the cron cadence, you can choose a predefined interval from the Common Settings field or manually set the run interval in each field.
  • Hostico does not allow the execution of a cron with a frequency of less than 5 minutes, or if its execution takes longer, a time will be set that allows the first process to complete before being resumed by the next cron session.

  • In the Command field, enter the desired command for execution.

  • In this case, the cron will produce a result that will be sent to the previously predefined email address
  • If sending results is not desired, the cron job will be directed to delete the report by adding ">/dev/null 2>&1" at the end of the command

  • Then press the Add New Cron Job button
  • Subsequently, a confirmation message will appear, and the cron will be visible at the bottom of the page where it can be edited.

  • If everything went successfully, the cronjob will start running at the times specified by the user.

 

Similar Articles

Transfer .ro domainTutorials /Domains

This tutorial presents the steps necessary to obtain the authorization key from the ROTLD panel for transferring a .ro domain to a new registrar.

77
by Mark Dohi
Views 1439
Updated 1 year ago
Published on 06/02/2018
Changing the PHP version in cPanel on VPS hosting packages via MultiPHP ManagerTutorials /cPanel

In this article, we will present the necessary steps to change the PHP version in a cPanel account using MultiPHP Manager.

46
by Sebastian Szlivka
Views 2265
Updated 1 year ago
Published on 18/10/2017
Unblocking the IP from Hostico serversTutorials /Dev

In this tutorial, the necessary steps will be presented to unblock the IP listed in the firewall on Hostico servers.

32
by Mark Dohi
Views 1115
Updated 7 months ago
Published on 05/10/2020
Adding a secondary contact (Subcontact)Tutorials /Commercial

Add a secondary contact in your Hostico client account by following these simple steps. Make sure you have an existing account and activate the necessary rights.

27
by Mark Dohi
Views 2088
Updated 1 year ago
Published on 08/07/2017
Creating an email account in cPanelTutorials /cPanel

The cPanel allows for the creation of an unlimited number of email accounts associated with hosted domains. This tutorial will explain the necessary steps to create and access an email account.

25
by Cătălin Adrian
Views 4587
Updated 1 year ago
Published on 28/06/2017