diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 2d0067b..bbe0483 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -6,7 +6,20 @@ Recent content in _posts on uweb browser: unlimited power Hugo -- gohugo.io en - Tue, 11 Apr 2023 00:00:00 +0000 + Wed, 25 Oct 2023 00:00:00 +0000 + + cron + /en/tcron/ + Wed, 25 Oct 2023 00:00:00 +0000 + + /en/tcron/ + crontab 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. +tcron 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. +Use tcron (Click to install) with "default.rc" or "default.rc2". +usage: tcron logfile command hours [timezone delay_sec elsecommand] +execute "command" during time interval once. + + Offline resources /en/offlinecache/ diff --git a/en/filenames/index.html b/en/filenames/index.html index 85c842a..6177484 100644 --- a/en/filenames/index.html +++ b/en/filenames/index.html @@ -77,6 +77,7 @@ "default.filecap":custom file handling
"default.rc": check the option "custom file handling" to execute the shell script file during uweb launching. tcron provides extra cron tools.
"default.rc2": check the option "custom file handling" to execute the shell script file when uweb returns to foreground.
+"crontab":
"engine.search": to define quick search engines (pressing right arrow button to use next engine to search). The file format is similar to home5.search but using "%s" as search keywords.
"default.siteconf": to save ua, js disabling, no-image mode, forbids 3rd-party resources (js and others), active scripts, global scripts for sites. Only save the difference to default ones.
"default.playrate": fullscreen playing menu. The file format is same as default.link. Playing ratio menu items should have empty link parts such as ".5x:", at least one such menu is required. All other menus must be put after playing ratio menus.
@@ -100,8 +101,8 @@

"shortcut/": dynamical shortcut, if not exist, then default to "bookmark".

-

Last Modified: 8 May 2023
-add gissues
+

Last Modified: 25 October 2023
+add en/_posts/tcron.md


 

+ + +
+ + + + + + + +
+
+ +
+

cron +
+ +

+
    + +
+

crontab

+

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.

+

tcron

+

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.

+

Use tcron (Click to install) with "default.rc" or "default.rc2".

+

usage: tcron logfile command hours [timezone delay_sec elsecommand]
+execute "command" during time interval once.
+where logfile modification time must be updated if "command" runs successfully.

+

hours: If positive, then each day is divided into multiple intervals (unit: hour), and in each interval, the "command" runs only once.
+If negative, then the unit is minute.
+hours could be also in "hh:mm-hh:mm,..." format. Ex. "6:00-8:30,11:00-13:00,5:30-6:30".
+timezone: an integer, default to be "8" for Beijing China (UTC+8). "0" for Greenwich UK (UTC+0).
+delay_sec: execute "command" after "delay_sec" seconds.
+elsecommand: executed whenever "command" not run.

+

ex:
+set PATH=/system/bin:/data/data/info.torapp.uweb/files/bin
+#Empty the folder "baidu" every 30 days.
+tcron /sdcard/b "rm -rf /sdcard/baidu/*;toybox touch /sdcard/b" 720

+

Install example default.rc file for termux

+ +
+

Last Modified: 25 October 2023
+add en/_posts/tcron.md
+


+

+ + + + + diff --git a/latest.html b/latest.html index b50b0ac..1234294 100644 --- a/latest.html +++ b/latest.html @@ -1,6 +1,6 @@ + diff --git a/zh/sitemap.xml b/zh/sitemap.xml index 53ad97b..fa660f9 100644 --- a/zh/sitemap.xml +++ b/zh/sitemap.xml @@ -3,7 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> /zh/_posts/ - 2023-07-29T22:35:45+08:00 + 2023-10-25T13:06:41+08:00 /zh/filenames/ - 2023-02-15T07:16:07+08:00 + 2023-10-25T13:06:41+08:00 /zh/tcron/ 2023-05-19T15:10:23+08:00 + + /zh/logcat/ 2022-09-24T14:06:03+08:00 diff --git a/zh/tcron/index.html b/zh/tcron/index.html index c2a5d32..aaa8415 100644 --- a/zh/tcron/index.html +++ b/zh/tcron/index.html @@ -29,6 +29,10 @@
+ + + +