set a cron job to run any program

Anna

I am just me
Staff member
Messages
11,739
Reaction score
579
Points
113
Place the cron.php in a suitable folder, it doesn't have to be the public_html folder.

then in cPanel go to "cron jobs" chose the standard option.

in the command to run line type: /usr/bin/php -q /home/yourcpaneluser/pathtofile/cron.php

the yourcpaneluser folder represents your root folder.

Set the timer as you need, but remember that on free servers you can not run it more often then every 5 minutes.
 

sen01dj

New Member
Messages
40
Reaction score
0
Points
0

bpathak

New Member
Messages
6
Reaction score
0
Points
0
Place the cron.php in a suitable folder, it doesn't have to be the public_html folder.

then in cPanel go to "cron jobs" chose the standard option.

in the command to run line type: /usr/bin/php -q /home/yourcpaneluser/pathtofile/cron.php

the yourcpaneluser folder represents your root folder.

Set the timer as you need, but remember that on free servers you can not run it more often then every 5 minutes.

LladyAnna - Are you sure croj jobs are enabled for free hosting? I tried your suggestion and few other threads but the job does not seem to run. I should get an email with the output but that is not happening. Also I tried to write a file on the server through script to check if the cron jobs are running but nothing seems to happen. I think cron jobs are not enabled... Please advice.
 

sen01dj

New Member
Messages
40
Reaction score
0
Points
0
I hope my coron job is running
earlier my code was wrong and I got error detail mail
but now no job success or complete notification mail

how can I add html web page to coronjob
what is the command
pls help me
thank you

http://www.sensitivedjs.co.cc
 
Last edited:
Top