mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
internal links as sixth field in crontab
This commit is contained in:
parent
8c6754186c
commit
074affaa54
6 changed files with 22 additions and 16 deletions
|
@ -46,8 +46,13 @@
|
|||
<ul class="tags">
|
||||
|
||||
</ul>
|
||||
<h4 id="crontab">crontab</h4>
|
||||
<h4 id="crontab-with-enhanced-semantics">crontab (with enhanced semantics)</h4>
|
||||
<p>For performance, the file "crontab" uses single space as field separator. Letters are not suppored currently. So use "1" for "January" and 2 for "Tuesday" etc.</p>
|
||||
<p>The sixth field in crontab file has the format of <a href="../links/index.html">internal links</a>. Specifically, "c:" to execute the following commands in termux and "!" to execute commands directly.</p>
|
||||
<p>To make crontab more powerful, we changed the semantics as follows:<br>
|
||||
The day of a command's execution can be specified by two fields — day of month, and day of week. The command will be run when <span style="color:red">both</span> fields matche the current time.</p>
|
||||
<p>Note (the original crantab semantics):<br>
|
||||
The day of a command's execution can be specified by two fields — day of month, and day of week. If both fields are restricted (i.e., aren't *), the command will be run when either field matches the current time. For example, ``30 4 1,15 * 5'' would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday.</p>
|
||||
<h4 id="tcron">tcron</h4>
|
||||
<p>With the option "custom file handling" enabled, "default.rc" runs as shell script at uweb launching time and "default.rc2" runs whenever uweb becomes foreground.</p>
|
||||
<p>Use tcron (<a href="i:0bhttps://fastly.jsdelivr.net/gh/torappinfo/uwebjs/bin/tcron.tgz">Click to install</a>) with "default.rc" or "default.rc2".</p>
|
||||
|
@ -68,7 +73,7 @@ tcron /sdcard/b "rm -rf /sdcard/baidu/*;toybox touch /sdcard/b" 720</p
|
|||
|
||||
</div>
|
||||
<p>Last Modified: 25 October 2023<br>
|
||||
add en/_posts/tcron.md<br>
|
||||
crontab support<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue