Browse Source

Fix "ranges with steps" example, add note about "man 5 crontab"

pull/140/head
Pēteris Caune 7 years ago
parent
commit
e9ea06756a
1 changed files with 10 additions and 6 deletions
  1. +10
    -6
      templates/front/docs_cron.html

+ 10
- 6
templates/front/docs_cron.html View File

@ -14,7 +14,11 @@
to parse and interpret cron expressions. Below is a showcase of to parse and interpret cron expressions. Below is a showcase of
supported syntax features. supported syntax features.
</p> </p>
<p>
<strong>Pro-tip!</strong>
On Unix-like operating systems, you can also easily access cron syntax
documentation by typing <code>man 5 crontab</code> in shell.
</p>
<br /> <br />
<div id="cron-examples"> <div id="cron-examples">
@ -264,13 +268,14 @@
<h3 class="panel-title">Ranges with a step</h3> <h3 class="panel-title">Ranges with a step</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<p>Use <code>{start}/{step}</code> to define a range with a step.</p>
<p>Use <code>{start}-{end}/{step}</code> or <code>*/{step}</code>
to define a range with a step.</p>
<div class="desc">"Run every quarter of an hour"</div> <div class="desc">"Run every quarter of an hour"</div>
<table class="cron-example"> <table class="cron-example">
<tr> <tr>
<th><div>0/15 <span></span></div></th>
<th><div>*/15 <span></span></div></th>
<th><div>*</div></th> <th><div>*</div></th>
<th><div>*</div></th> <th><div>*</div></th>
<th><div>*</div></th> <th><div>*</div></th>
@ -311,7 +316,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="5"> <td colspan="5">
Run every 15 minutes, starting from minute 0
Run every 15 minutes
</td> </td>
</tr> </tr>
</table> </table>
@ -324,8 +329,7 @@
</div> </div>
<div class="panel-body"> <div class="panel-body">
<p>In the comma-separated lists you can combine not only <p>In the comma-separated lists you can combine not only
numeric values but also <code>{start}-{end}</code> and <code>{start}/{step}</code>
constructs.</p>
numeric values but also ranges.</p>
<div class="desc">"Run every round hour outside office hours"</div> <div class="desc">"Run every round hour outside office hours"</div>


Loading…
Cancel
Save