Cronjobs

Automate your EasySocial by setting up cronjobs. You will learn all about cronjob settings here.

HostGator Cronjobs

Cronjobs are scheduled task that runs at a intervals or pre-defined times on the server. The purpose of cronjob is to execute series of simple repetitive tasks from a script file provided by the user. This cronjob can be configured through cPanel as the user interface is provided to ease the configuration process.

Setting Up Cronjob

First and foremost, you will need to have administrator access to your site's cPanel. Once you're logged in, search for Cronjob icon and click on the icon, highlighted in the following screenshot.

Accessing cpanel

Specify Email

Specify an email address at the cronjob email section to receive notification or status messages whenever your cronjobs are executed.

Setup Email

Configuring Cronjobs

There are several steps allocated under this section. You will need to follow the provided steps carefully so that your site's cronjob will be working correctly.

  1. Seting Up Cronjob Interval.
    To setting up cronjob, you'll need to configure the interval at which second do you wish to run the cronjob.

    Crojobs Interval

    • Minutes
      Use this menu to select the number of minutes between running the cronjob or the minute of each hour for which you wish to run the cronjobs.
    • Hour
      Use this menu to select the number of hours between running the cron job, or the hour each day on which you wish to run the cron job.
    • Day
      Use this menu to select the number of days between running the cron job, or the day of the month on which you wish to run the cron job.
    • Month
      *Use this menu to select the number of months between running the cron job, or the month of the year in which you wish to run the cron *
    • Weekday
      Use this menu to select the day(s) of the week on which you wish to run the cron job.
  2. Setting Up Cronjob Command.
    In the command field, you'll need to add the correct command for cronjob to run properly.

  3. Store Cronjobs
    Once you've finished configuring the cronjob, you'll need to click on Save Crontab button and you're ready to test your cronjob on your site.

    Cronjobs