 | IX/CRON Q |  |
Posted: 07/21/2007 5:15 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 1:59 PM
|

|
|
|
|
 |
I need to use CRON for my new site and in the documentation is says
| Quote:
|
17. Do you have CRON support?
Yes, CRON is fully supported and manageable through convenient control panel interface on any of our Linux hosting accounts.
|
How do I find where that is ? I've looked but can't see it.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/21/2007 12:48 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:59 AM
Location: St Pete, FL
|

|
|
|
|
 |
You can set up a CRON job in your Host CPanel. It varies from Host to Host. For IX, just click on the FTP Manager icon:
If it is turned off, click on the Off icon next to Crontab:
Then click on the Edit icon next to Crontab:
You will see settings for Minute, Hour, Day of Month, Month, Day of Week, and Command:
If you place a * in a box, then that means to launch the Cron job on every interval for that box. So if you placed a * in the Minute field, it would launch the Cron job on every minute of the designated period. The same would apply with the rest of the fields. If you don't want it to launch that often, you can enter a number. So the following will launch the Cron job on every hour on the hour of every day:
The Command would be the path to the file that you want to launch on a regular schedule. The syntax is different from server to server, so if you can't get it to work, it is usually best to contact the host and ask for their help in setting things up. On IX, I use the GET command, plus the path to the file that I want to run. So to launch our newsfeeds, I use the following command:
| Code:
|
|
GET http://4fxearth.net/phpBB2/mods/netclectic/find_input/news_insert.php > /dev/null
|
Since I only want to pull newsfeeds every four hours, this is how I set it up:
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/22/2007 7:26 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 1:59 PM
|

|
|
|
|
 |
Great NR thanks for the clear instructions  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/22/2007 2:20 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:59 AM
Location: St Pete, FL
|

|
|
|
|
 |
You're welcome Karen. I hope you managed to get your own Cron jobs working now...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/26/2007 7:21 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 1:59 PM
|

|
|
|
|
 |
Should I see the list of jobs set up?
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/27/2007 5:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:59 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, it doesn't appear that you've created any though...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/27/2007 5:46 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 1:59 PM
|

|
|
|
|
 |
The guy was supposed to do it but he said it went back to that page once he did it, I need to chase him up about it Not long now..lol!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/27/2007 10:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:59 AM
Location: St Pete, FL
|

|
|
|
|
 |
Go ahead and create a cronjob yourself to see how it works. The command doesn't have to be valid if you're just playing around...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/28/2007 3:09 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 1:59 PM
|

|
|
|
|
 |
Ohh I did think about that but wasn't sure if it would affect anything  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: IX/CRON Q |  |
Posted: 07/28/2007 10:24 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:59 AM
Location: St Pete, FL
|

|
|
|
|
 |
No, it won't hurt anything. If you don't provide a valid link in the command, it will simply try to run something that doesn't exist, then it will give up...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|