Knowledgebase
What is the command I need to use to run file myfile.php
Posted by Karmjit Grewal on 15 March 2017 01:13 PM

You can use the wget command to schedule php type cli commands. Please follow the steps below to create one.

Step 1: Log into your control panel and then go to "Schedule Tasks" icon on the right hand side under Websites and Domains section.

cronjob1

 

Step 2: Now click on "Add Task" icon under Schedule Tasks.

cronjob2

 

Step 4: Now complete the information required for Task Type, command, Run, Description and Notify details. Under Command use wget command to run php type cli commands as followed. eg. wget -o /dev/null http://yourdomain.co.nz/update.php

cronjob4

Option -o is used to direct an output file to /dev/null. You can remove this option but then it will create a outpul file at the location where wget command runs.

 

(0 vote(s))
Helpful
Not helpful

Comments (0)