diff options
author | gbmor <ben@gbmor.org> | 2024-09-04 01:19:14 +0000 |
---|---|---|
committer | gbmor <ben@gbmor.org> | 2024-09-04 01:19:14 +0000 |
commit | 4ede54ab966b0d34380bd5616fa5355ad239a2de (patch) | |
tree | 72b7979527e4bda680d15bb5ad896ecee412f47f /pages | |
parent | 6532e13f7a6fd20b42dd64c275780c6e23d7c9f1 (diff) | |
parent | 33a49a8f042d99d195ae00aa963e7c8c139287fd (diff) | |
download | wiki-4ede54ab966b0d34380bd5616fa5355ad239a2de.tar.gz |
Merge pull request 'started user-crontabs.md' (#8) from yeti/institute__wiki:trunk into trunk HEAD trunk
Reviewed-on: https://tildegit.org/institute/wiki/pulls/8 Reviewed-by: gbmor <ben@gbmor.org>
Diffstat (limited to 'pages')
-rw-r--r-- | pages/user-crontabs.md | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pages/user-crontabs.md b/pages/user-crontabs.md new file mode 100644 index 0000000..0f9703f --- /dev/null +++ b/pages/user-crontabs.md @@ -0,0 +1,67 @@ +<!-- +title: User Crontabs +description: Using crontabs as user on tilde.institute +author: yeti +--> + +# Cron and Crontabs + +The `cron` daemon manages the global cron tables and users typically +ar not allowed to use them. + +On some systems users are allowed to have per user cron tables which +mimic the format of the global ones except for the user field. + +--> `crontab(5)` + +Showing and manipulating user crontabs is done ia an own command of +the same name. + +--> `crontab(1)` + +The main surprise could be lines in crontabs misbehaving when a `%` +occurs. `crontab(5)` should explain this. + +1. Hitchhiker 25: +(41) Deep Thought paused for a moment's reflection. +(42) "Tricky," he said finally. + + +# Test/Create your Crontab + +Use `crontab -e` and add a line like: + +``` +* * * * * >>/tmp/crontest.$USER python3%import time%print(time.time()) +``` + +After saving `cron` will execute this every minute. To disable it, +disarm it by turning it into a comment by a leading `#` or delete that +line completely. + + +# Myth + +Cron is too dumb for complex events. + +Delegate complex stuff to the command part and something to "fire" on +each last day of a month, on every even Thursday, on the 256th day of +the year, ... and much more is doable even as oneliner. + +Examples may or may not show up later. + +1. Hitchhiker 25: +(59) Scarcely pausing for breath, Vroomfondel shouted, "We don't +demand solid facts! What we demand is a total absence of solid facts. +I demand that I may or may not be Vroomfondel!" + + +# This is a stub + +...and needs to be extended by a lot. + +For now testing whether this will appear after committing is more +important than an epic collection of examples. + + +[back](/) |