History: Cron
Source of version: 26 (current)
Copy to clipboard
! Cron "Cron is a time-based job scheduler in Unix-like computer operating systems. The name cron comes from the word "chronos", Greek for "time". Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates" http://en.wikipedia.org/wiki/Cron Tiki doesn't require the use of cron, even if starting in ((Tiki5)), it is possible to use cron jobs to offload some work. To manage cron jobs in Tiki, please see: ((Scheduler)). !! Web Cron Starting in ((Tiki17)), it's possible to trigger Web Cron like [https://www.easycron.com|Easycron.com] from a URL or JavaScript. {img src="display1382" link="display1382" width="400" rel="box[g]" imalign="center" desc="Click to expand" align="center" styleimage="border"} !! Changing tracker item status In ((Tiki6)), tracker item status can be changed after a period of inactivity, etc. See http://doc.tiki.org/Batch#Trackers !! Email sending from Newslettters Using tiki-bach_send_newsletter.php See ((Newsletters)) and http://doc.tiki.org/Newsletter+User#Sending_newsletters_with_a_cron_batch_job !! Updating advanced rating Using a custom php script as described in http://doc.tiki.org/Advanced+Rating#Appendix See ((Calculations)) !! Search In ((Tiki9)) there is a shell script for use in cron tasks etc for search index maintenance, with a line like: {CODE(colors="bash", caption="In Tiki 9")} 30 2 * * * cd path_to_tiki/; php lib/search/shell.php rebuild;sh setup.sh -n {CODE} {CODE(colors="bash", caption="In Tiki 12")} 30 2 * * * cd path_to_tiki/; php console.php index:rebuild --log {CODE} This will run the command at 2:30 a.m. See also: ((Cron Job to Rebuild Search Index)) __Note:__ Keep in mind that some webhosts don't allow you set up a cron, and that's why ((Tiki9)) is expected to include another system to manage cronjob calls in a Tiki site, in order to allow cron jobs in external servers with a special security ((token)). Alternatively, you can use an online cron job third-party service such as EasyCron: https://web.archive.org/web/20160910095003/https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-tiki-newsletters !! Email sending from Daily reports Using tiki-user_send_reports.php See ((Daily reports)) !! Email sending through a mail queue Using console.php See ((Mail Queue)) !! Related: * ((Batch)) * ((pr:Scheduler_presets_20)) -=alias=- (alias(Cron jobs)) | (alias(Cron tabs)) | (alias(Cronjobs)) | (alias(Crontabs)) | (alias(Cronjob)) | (alias(Crontab))