How do I set up a cron job?

How do I set up a cron job?

You can set up a cron job or 'scheduled task' in the Scheduled Tasks section of your hosting packages control panel.

Manage Hosting -> Manage -> Scheduled Tasks

These are commands or jobs that are set to run regularly. They can be set to run at intervals of minutes, or the same time every hour, day or month.

On the Scheduled Tasks page there are three things to consider:

1. What command you are wanting to run? This is usually something like a WGET to a certain domain name or a PHP script. If you want to run a particular file such as WordPress's cron you'll need to use the correct version of PHP for the website. To select a particular version of PHP to run the command you use the commands to the right of the screen.

2. How often you need your cron to run? This is selected from the drop-down boxes under where you enter the command. You can either use the first box to run it every 5, 10, 15 minutes or you can be more specific and select particular minutes in the hour, hours in the day or days in the month for the cron to run.

3. Would you would like to have emails sent to a specified address when a cron is run? An email will only be sent if the cron produces an output so if the cron doesn't output anything no email will be sent.

    • Related Articles

    • How do I set up email on my iPhone?

      To set up your VISYOO mailbox on an Apple iPhone or iPad, you need to: Head to the Settings icon and locate the Accounts & Passwords option. Then select 'Add Account'. Select Other from this list. Input the information requested: Name: Anything ...
    • How do I set up email on my Android device?

      Here's how to set up a VISYOO email on an Android phone or tablet: Open the mail application on your Android device.  Select Add New Account and enter the mailbox name and its password.  Select Manual Setup and select IMAP Account. The User name will ...
    • What is the IP address that my site uses for external connections

      Due to the distributed nature of our network, the IP address your site uses to make outbound connections will differ from the IP the domain resolves-to, and hence inbound traffic routes through. External connections made by shared websites will ...
    • How do I connect via SSH using 2FA?

      It's only recommended that you connect to your package via SSH if you're familiar with the command-line interface. Here is how to connect using two-factor authentication (2FA). Windows If you're using Windows you will want to download an SSH client ...
    • Can I rename a mailbox?

      It's not possible to rename a mailbox once it's been created. To get around this, you can create a new mailbox within VISYOO and use the Email Migration tool to sync one mailbox to the other, then remove the original mailbox. You'd use the ...