softcode:cron
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
softcode:cron [2013/08/19 20:26] – old revision restored (2011/03/25 18:59) jamie | softcode:cron [2015/09/22 17:23] – Added detailed info for the @cron command jamie | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== CobraMUSH MUSHCron ====== | ====== CobraMUSH MUSHCron ====== | ||
[[:About | CobraMUSH]] utilizes [[people: | [[:About | CobraMUSH]] utilizes [[people: | ||
+ | |||
+ | @CRON | ||
+ | Syntaxes: | ||
+ | @cron | ||
+ | @cron/ | ||
+ | @cron/set < | ||
+ | @cron/list [< | ||
+ | @cron/ | ||
+ | |||
+ | Synposis: Manages the ingame MUSHCron system. | ||
+ | |||
+ | In order to use this command you must possess the ' | ||
+ | |||
+ | @cron/add creates or alters the job named < | ||
+ | specified whether the attribute holds functions or commands. | ||
+ | < | ||
+ | objects the ' | ||
+ | |||
+ | @cron/set sets or unsets a flag on < | ||
+ | COMMAND | ||
+ | FUNCTION | ||
+ | HALT | ||
+ | |||
+ | A cronjob may only be of the ' | ||
+ | |||
+ | @cron/list will show information about the cronjobs. If you specify | ||
+ | < | ||
+ | |||
+ | @cron/ | ||
+ | | ||
+ | 2 Default global cronjobs are included, being an ' | ||
+ | |||
+ | Daily spec triggering the ' | ||
+ | |||
+ | A cronspec describes at which time a cronjob will be executed. The fields of a valid cronspec are as follows: | ||
+ | |||
+ | < | ||
+ | 0-59 | ||
+ | Jan-Dec | ||
+ | |||
+ | Each field may contain a range of numbers, e.g. 2-5, or a * to indicate 0 through the maximum for that field. | ||
+ | |||
+ | A skip value can be used to select values from a range. It is specified as /< | ||
+ | |||
+ | You can specify a list of values in each field, seperated with a comma. e.g. 0, | ||
+ | |||
+ | For the months and days of the week you may specify the english names or 3 letter abbreviations. January and Sunday are 0. | ||
+ | |||
+ | |* * * * * | Every minute of every day| | ||
+ | |30 * * * * | Run every half hour.| | ||
+ | |*/30 * * * * | Run every 30 minutes.| | ||
+ | |15 6,18 * * * | 6:15 am and pm| | ||
+ | |20 4 20 April * | Do something once a year| | ||
+ | |*/2 * * * * | Do it every 2 minutes| | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | @cron/ |
softcode/cron.txt · Last modified: 2018/06/23 00:30 by 127.0.0.1