internal links as sixth field in crontab

This commit is contained in:
James Feng Cao 2023-10-26 07:37:29 +08:00
parent 8c6754186c
commit 074affaa54
6 changed files with 22 additions and 16 deletions

View File

@ -13,11 +13,10 @@
<pubDate>Wed, 25 Oct 2023 00:00:00 +0000</pubDate>
<guid>/en/tcron/</guid>
<description>crontab For performance, the file &amp;quot;crontab&amp;quot; uses single space as field separator. Letters are not suppored currently. So use &amp;quot;1&amp;quot; for &amp;quot;January&amp;quot; and 2 for &amp;quot;Tuesday&amp;quot; etc.
tcron With the option &amp;quot;custom file handling&amp;quot; enabled, &amp;quot;default.rc&amp;quot; runs as shell script at uweb launching time and &amp;quot;default.rc2&amp;quot; runs whenever uweb becomes foreground.
Use tcron (Click to install) with &amp;quot;default.rc&amp;quot; or &amp;quot;default.rc2&amp;quot;.
usage: tcron logfile command hours [timezone delay_sec elsecommand]
execute &amp;quot;command&amp;quot; during time interval once.</description>
<description>crontab (with enhanced semantics) For performance, the file &amp;quot;crontab&amp;quot; uses single space as field separator. Letters are not suppored currently. So use &amp;quot;1&amp;quot; for &amp;quot;January&amp;quot; and 2 for &amp;quot;Tuesday&amp;quot; etc.
The sixth field in crontab file has the format of internal links. Specifically, &amp;quot;c:&amp;quot; to execute the following commands in termux and &amp;quot;!&amp;quot; to execute commands directly.
To make crontab more powerful, we changed the semantics as follows:
The day of a command&#39;s execution can be specified by two fields — day of month, and day of week.</description>
</item>
<item>

View File

@ -51,7 +51,8 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>1008: Add long screenshot mode<br>
<p>1017: crontab supports <a href="../links/index.html">links</a> as sixth field.<br>
1008: Add long screenshot mode<br>
1006: Advanced configuration: auto reload, add download path<br>
1004: bookmarklet &quot;Show as html&quot; to support clipboard sites such as &quot;netcut.cn&quot;.<br>
998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
@ -81,8 +82,8 @@
</ul>
</div>
<p>Last Modified: 5 June 2023<br>
add long screenshot support<br>
<p>Last Modified: 26 October 2023<br>
crontab support<br>
<pre></pre>
</p>
<script>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-10-25T13:07:04+08:00</lastmod>
<lastmod>2023-10-25T22:52:37+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -16,7 +16,7 @@
/>
</url><url>
<loc>/en/tcron/</loc>
<lastmod>2023-10-25T13:03:03+08:00</lastmod>
<lastmod>2023-10-25T22:52:37+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -113,7 +113,7 @@
/>
</url><url>
<loc>/en/topposts/</loc>
<lastmod>2023-06-05T08:28:59+08:00</lastmod>
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -210,7 +210,7 @@
/>
</url><url>
<loc>/en/changelog/</loc>
<lastmod>2023-06-05T08:28:59+08:00</lastmod>
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
</url><url>
<loc>/en/sitemap/</loc>
<lastmod>2023-02-01T09:52:11+08:00</lastmod>

View File

@ -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 &quot;crontab&quot; uses single space as field separator. Letters are not suppored currently. So use &quot;1&quot; for &quot;January&quot; and 2 for &quot;Tuesday&quot; etc.</p>
<p>The sixth field in crontab file has the format of <a href="../links/index.html">internal links</a>. Specifically, &quot;c:&quot; to execute the following commands in termux and &quot;!&quot; 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 &quot;custom file handling&quot; enabled, &quot;default.rc&quot; runs as shell script at uweb launching time and &quot;default.rc2&quot; 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 &quot;default.rc&quot; or &quot;default.rc2&quot;.</p>
@ -68,7 +73,7 @@ tcron /sdcard/b &quot;rm -rf /sdcard/baidu/*;toybox touch /sdcard/b&quot; 720</p
</div>
<p>Last Modified: 25 October 2023<br>
add en/_posts/tcron.md<br>
crontab support<br>
<pre></pre>
</p>
<script>

View File

@ -66,7 +66,8 @@ sourceforge
powerfolder
udrop
pagure
Main features Change logs 1008: Add long screenshot mode
Main features Change logs 1017: crontab supports links as sixth field.
1008: Add long screenshot mode
1006: Advanced configuration: auto reload, add download path
1004: bookmarklet &amp;quot;Show as html&amp;quot; to support clipboard sites such as &amp;quot;netcut.cn&amp;quot;.
998: Bookmarklets to support CSP sites.

View File

@ -4,7 +4,7 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-10-25T13:07:04+08:00</lastmod>
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
</sitemap>