| |
|
Welcome to KnowledgeSutra - Dear Guest | |
How To Configure Cron Jobs?
Started by Ousk, Mar 15 2009 12:02 PM
7 replies to this topic
#2
Posted 15 March 2009 - 01:23 PM
Try this: wget -O - -q -t 1 http://your.website.com/cron.php
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.
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.
#4
Posted 15 March 2009 - 11:44 PM
The real deal to me is, in the Advanced Mode:
* * * * * (Set to which hour, etc, date) : curl http://URL.com
Try if that works for you, it works for me.
* * * * * (Set to which hour, etc, date) : curl http://URL.com
Try if that works for you, it works for me.
#6
Posted 16 March 2009 - 09:12 PM
I would apreciate if anyone could help a litle more please, i too must know how to create cron jobs, i did not search the internet yeat because i wanted to get help over here, so if anyone could explain how , i apreciate it, i have a wordpress blog which needs a cron job because of a plugin i have, and it gave a code create a cron job, but i do not know where to execute or insert that code for the cron job.
Can anyone tell me where i do execute code already given to create a cron job?
Can anyone tell me where i do execute code already given to create a cron job?
#7
Posted 17 March 2009 - 02:01 AM
I'm assuming cron.php contains list of instructions? Remember that cron itself has standard commands such as copy, "cp" with command extensions, i.e. r for replace etc.
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.
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.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















