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
|
@ -13,11 +13,10 @@
|
||||||
<pubDate>Wed, 25 Oct 2023 00:00:00 +0000</pubDate>
|
<pubDate>Wed, 25 Oct 2023 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>/en/tcron/</guid>
|
<guid>/en/tcron/</guid>
|
||||||
<description>crontab 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.
|
<description>crontab (with enhanced semantics) 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.
|
||||||
tcron 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.
|
The sixth field in crontab file has the format of internal links. Specifically, &quot;c:&quot; to execute the following commands in termux and &quot;!&quot; to execute commands directly.
|
||||||
Use tcron (Click to install) with &quot;default.rc&quot; or &quot;default.rc2&quot;.
|
To make crontab more powerful, we changed the semantics as follows:
|
||||||
usage: tcron logfile command hours [timezone delay_sec elsecommand]
|
The day of a command's execution can be specified by two fields — day of month, and day of week.</description>
|
||||||
execute &quot;command&quot; during time interval once.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -51,7 +51,8 @@
|
||||||
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
|
<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="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
|
||||||
<h4 id="change-logs">Change logs</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>
|
1006: Advanced configuration: auto reload, add download path<br>
|
||||||
1004: bookmarklet "Show as html" to support clipboard sites such as "netcut.cn".<br>
|
1004: bookmarklet "Show as html" to support clipboard sites such as "netcut.cn".<br>
|
||||||
998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
|
998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
|
||||||
|
@ -81,8 +82,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 5 June 2023<br>
|
<p>Last Modified: 26 October 2023<br>
|
||||||
add long screenshot support<br>
|
crontab support<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>/en/_posts/</loc>
|
<loc>/en/_posts/</loc>
|
||||||
<lastmod>2023-10-25T13:07:04+08:00</lastmod>
|
<lastmod>2023-10-25T22:52:37+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/tcron/</loc>
|
<loc>/en/tcron/</loc>
|
||||||
<lastmod>2023-10-25T13:03:03+08:00</lastmod>
|
<lastmod>2023-10-25T22:52:37+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/topposts/</loc>
|
<loc>/en/topposts/</loc>
|
||||||
<lastmod>2023-06-05T08:28:59+08:00</lastmod>
|
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/changelog/</loc>
|
<loc>/en/changelog/</loc>
|
||||||
<lastmod>2023-06-05T08:28:59+08:00</lastmod>
|
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/sitemap/</loc>
|
<loc>/en/sitemap/</loc>
|
||||||
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
||||||
|
|
|
@ -46,8 +46,13 @@
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
|
|
||||||
</ul>
|
</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>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>
|
<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>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>
|
<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>
|
</div>
|
||||||
<p>Last Modified: 25 October 2023<br>
|
<p>Last Modified: 25 October 2023<br>
|
||||||
add en/_posts/tcron.md<br>
|
crontab support<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -66,7 +66,8 @@ sourceforge
|
||||||
powerfolder
|
powerfolder
|
||||||
udrop
|
udrop
|
||||||
pagure
|
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
|
1006: Advanced configuration: auto reload, add download path
|
||||||
1004: bookmarklet &quot;Show as html&quot; to support clipboard sites such as &quot;netcut.cn&quot;.
|
1004: bookmarklet &quot;Show as html&quot; to support clipboard sites such as &quot;netcut.cn&quot;.
|
||||||
998: Bookmarklets to support CSP sites.
|
998: Bookmarklets to support CSP sites.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>en/sitemap.xml</loc>
|
<loc>en/sitemap.xml</loc>
|
||||||
|
|
||||||
<lastmod>2023-10-25T13:07:04+08:00</lastmod>
|
<lastmod>2023-10-26T07:34:42+08:00</lastmod>
|
||||||
|
|
||||||
</sitemap>
|
</sitemap>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue