This article will walk you through creating a cron job that runs a file.
First, log into cPanel and click on "Cron Jobs" under the "Advanced" section. Under "Add new cron job", either select one of the common timing options provided using the "Common Settings" drop-down box or manually input the desired frequency you would like the cron job to run. Then in the "Command" box, we can input the command along with the path to the file we want to run, examples:
Running a PHP file with the default version of PHP on the server:
Running a PHP file with a specific version of PHP:
Running a bash file:
Finally, click the blue "Add new cron job" button to finalize the addition.