Cron (command): Difference between revisions
From LimeSurvey Manual
No edit summary |
DenisChenu (talk | contribs) mNo edit summary |
||
Line 8: | Line 8: | ||
This event needs to be called with php cli command. | This event needs to be called with php cli command. | ||
<code>php yourlimesurveydir/application/commands/console.php plugin cron --interval=X<code> | <code>php yourlimesurveydir/application/commands/console.php plugin cron --interval=X</code> | ||
'''Input''' | '''Input''' |
Revision as of 09:32, 27 May 2014
Usage
This event is used when server admin sets a crontab command.
How to use
This event needs to be called with php cli command.
php yourlimesurveydir/application/commands/console.php plugin cron --interval=X
Input
The event receives the following information: interval the interval parameter, set this to the interval (in minutes) you want to run this cron job. Plugins can use this information to self-limit their execution time or check when the event will fire next.