DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:cronojob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
plugin:cronojob [2010-06-08 18:44] – created Aleksandrplugin:cronojob [2023-12-21 16:36] (current) – new download url Aleksandr
Line 1: Line 1:
-====== cronojob plugin ======+====== cronojob Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 7: Line 7:
 type       : action type       : action
 lastupdate : 2010-04-22 lastupdate : 2010-04-22
-compatible : 2009-12-25c "Lemming"+compatible : Lemming
 depends    :  depends    : 
 conflicts  conflicts 
Line 13: Line 13:
 tags       : jobs, scheduling, maintenance tags       : jobs, scheduling, maintenance
  
-downloadurl: http://www.bitlibero.com/dokuwiki/cronojob-22.04.2010.zip+downloadurl: https://trello.com/1/cards/5b046e9d98955bd04a9376f0/attachments/5b046edcf261140d1453a078/download/cronojob-2010-04-22.zip
 bugtracker :  bugtracker : 
 sourcerepo :  sourcerepo : 
 donationurl: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KHHGCTLSQPGEJ donationurl: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KHHGCTLSQPGEJ
 +
 +screenshot_img: 
 ---- ----
 +
 ===== Description ===== ===== Description =====
 +
 The **cronojob** plugin allow to schedule jobs to run to a specific time, using a modified version of [[http://www.bitfolge.de/?l=en&s=pseudocron|pseudo-cron]] PHP library. The **cronojob** plugin allow to schedule jobs to run to a specific time, using a modified version of [[http://www.bitfolge.de/?l=en&s=pseudocron|pseudo-cron]] PHP library.
  
Line 31: Line 35:
  
 ===== Usage ===== ===== Usage =====
 +
 All job definitions are made by the admin's side configuration. Here is an example of a valid crono table configuration: All job definitions are made by the admin's side configuration. Here is an example of a valid crono table configuration:
  
Line 39: Line 44:
   */15 8-19 *    *    Mon-Fri  refr_ext.php # refresh external news sources   */15 8-19 *    *    Mon-Fri  refr_ext.php # refresh external news sources
  
-The last line will call //refr_ext.php// every 15 minutes between 8am and 7pm on Monday to Friday+The last line will call //refr_ext.php// every 15 minutes between 8 AM and 7 PM on Monday to Friday
  
 Write a PHP script that does the job you want to be run regularly. Put this file into //lib/plugins/cronojob/jobs// folder. Set up your crono table configuration with your script. Wait for the next scheduled run :) Write a PHP script that does the job you want to be run regularly. Put this file into //lib/plugins/cronojob/jobs// folder. Set up your crono table configuration with your script. Wait for the next scheduled run :)
  
 You can log messages from your job script to **Cronojob**'s log file by calling logMessage("log a message"). You can log messages from your job script to **Cronojob**'s log file by calling logMessage("log a message").
 +
 ===== Version history ===== ===== Version history =====
-  * **2010-04-22** (current)\\+ 
 +  * **2010-04-22** (current)
     * runs any PHP script periodical or time-controlled script execution     * runs any PHP script periodical or time-controlled script execution
     * logs all executed jobs     * logs all executed jobs
Line 55: Line 62:
  
 ====== Discussion ====== ====== Discussion ======
-There's always room for improvement. If you're able to add any contributions to make pdfbook better, please [[l.micco@tiscali.it|let me know]] or discuss your thoughts right here (please use ''<nowiki>===== Level 2 Headlines =====</nowiki>'' to open a new "thread"/issue and ''<nowiki>----</nowiki>'' (five dashes, horizontal rule) to structure it when needed).+ 
 +There's always room for improvement. If you're able to add any contributions to make cronojob better, please [[l.micco@tiscali.it|let me know]] or discuss your thoughts right here (please use ''<nowiki>===== Level 2 Headlines =====</nowiki>'' to open a new "thread"/issue and ''<nowiki>----</nowiki>'' (four dashes, horizontal rule) to structure it when needed). 
 + 
 +===== Request ===== 
 + 
 +Could you please provide PHP versions of the scripts from the [[tips:maintenance|Maintenance page]] to use with the plugin? 
 + 
 +Is the plugin compatible with Rincewind?
plugin/cronojob.1276015488.txt.gz · Last modified: 2010-06-08 18:44 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki