|
|
How To Configure Cron Jobs? | ||
Discussion by Ousk with 7 Replies.
Last Update: March 19, 2009, 10:17 am | |||
![]() |
|
|
And for the timing - I don't see how you would need to run cron more than once a day, so probably pick any values for minute/hour and *'s for the other fields.
* * * * * (Set to which hour, etc, date) : curl http://URL.com
Try if that works for you, it works for me.
Can anyone tell me where i do execute code already given to create a cron job?
And the correct path name you should use is
/home/cpanel_name/public_html/cron.php
if the file you want to execute is within public_html folder.
/home/cpanel_name/cron.php
if the file is located outside public_html folder.
A simple example to copy a file over, writing over the existing file from location A to B:
cp -rf /home/cpanel_name/public_html/A/filename /home/cpanel_name/B/
Notice that I can copy outside of the public_html because /home/cpanel_name/ is my root directory. The same file name will be preserved and the existing file in location B will be overwritten without confirmation. This can be entered directly to Cron job using Standard method. No need to enter Unix command form.
0 12 * * * /usr/local/bin/php -q /home/*myusername*/public_html/cron.php and it runs every 12 hours
Similar Topics:
Cron Jobs - Cron Jobs In Cpanel
Cron Jobs Not Working In Cpanel
Cron Jobs
Purchasing A Domain Via Xisto Honesty ROCKS ! Truth Rules ;) cool nah ... (6)
|
(2) The Server Is Too Busy To Handle Your Request
|
Loading...
HOME 






