|
Haven't registered yet? Do it here now!
|
stingray2006
Joined: 01 Nov 2006 Posts: 8
|
|
|
|
|
|
|
Posted: Sun Nov 05, 2006 3:29 am Post subject: How to add cronjobs... |
|
|
|
|
|
|
|
|
|
|
Hi all, just wondering if anyone can give me a step by step way to manually add a cronjob. i have never worked with cronjobs before and it is beyond me at the moment.
i have looked thru other posts but it is still a mystery to me.
Cheers and thanks!
Jay |
|
|
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sun Nov 05, 2006 4:13 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there , well cronjobs are kinda tough for regular users who haven't deal with them.
Anyways i will try explaining it, but not sure will it be good enough, you might try searching at google for some more good tutorials.
Cronjob consists of two parts
1) Scheduling part - it defines at what period the cronjob should be running
2) Command part - defines what command/program should be executed by the cronjob.
1) Scheduling part - in its pure form looks like:
* * * * *
this means every minute, every hour, every day, every year.. - ie every minute.
0 * * * * means for example every hour - because its every 0th minute
0 0 * * * means every day - because it every 0th minute and every 0th hour.
2) Command part - with direct example for BO , looks like:
/usr/local/bin/php -q /usr/www/mydomain.com/bo/bocron.php >> /dev/null
where everything here is changed for your exact server setup..
I hope this helps you at least a little.
If you have problems setting up your cronjobs pm me url and pass for BO, and access to your hosting control panel and i will set them up. Otherwise copy & paste the cronjobs from BO to your host support and tell them to set them up.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
stingray2006
Joined: 01 Nov 2006 Posts: 8
|
|
|
|
|
|
|
Posted: Sun Nov 05, 2006 8:07 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Thank you Kaktusan,
that does help a lot - at least i know what i am looking at now.
i will ask my host to add the cronjobs - if i have any trouble... i know your are here for me! thanks!
Cheers!
Jay |
|
|
|
|
|
|
|
stingray2006
Joined: 01 Nov 2006 Posts: 8
|
|
|
|
|
|
|
Posted: Sun Nov 05, 2006 9:07 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
this is what the helpdesk had to offer me for setting up the cronjobs...
Quote: | Hello Jason,
Thank you for updating the ticket.
I have checked at my end and its been set correctly. You are able to create a cronjob for once per hour as the most randomly interval but not per minute.
To create hourly cronjobs, please create 24 daily cronjobs one for each hour a day. |
does this make sense?
Cheers!
Jay |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Mon Nov 06, 2006 12:57 am Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there again,
well your host does no allow cronjobs to run every minute, so its a server limitation. That isn't a big problem, since you will still have scheduling and everything working fine with BO, just you won't be able to schedule posts, precisely to the minute, but to hour.
I don't know what your host support means with "To create hourly cronjobs, please create 24 daily cronjobs one for each hour a day."
Just add all BO cronjobs to run every hour or every day. this way you will be able to schedule with precisity to the hour or day. If you have problems adding the cronjobs, just copy and paste the cronjobs from General Settings->Cronjobs to your host support and tell them to add them every hour or every day, whichever lowest is possible..
Let me know..
Thanks! _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |