commit 53a030b0c28c648ca905fe6ebddbd8191b8da0d8 parent 477313169a965776d7fca62ff4df8aa75a0cd3bb Author: Martin Ashby <martin@ashbysoft.com> Date: Sun, 27 Sep 2026 22:55:40 +0100 Add example crontab Diffstat:
| A | crontab_example.txt | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/crontab_example.txt b/crontab_example.txt @@ -0,0 +1,9 @@ +#minute hour mday month wday [flags] command +# Every hour run a `git pull` to make sure we have latest changes +0 * * * * cd /var/www/trmnl.mfashby.net && /usr/local/bin/git pull +# Every 5 minutes rotate the display... +*/5 * * * * cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run rotate_display.go +# Every hour refresh the weather +10 * * * * cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run weather.go +# Every day just after midnight refresh the hello message +01 0 * * * cd /var/www/trmnl.mfashby.net && /usr/local/bin/go run hello.go +\ No newline at end of file