From 8bde04ba412f14f82796c8dcddbe1f8c8d5d91bb Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 25 Dec 2022 14:02:55 +0100 Subject: [PATCH] fix(readme): suppress direnv loading output in cron By default direnv outputs this while executing: ``` direnv: loading ~/python-itho-wpu/.envrc ``` In a cronjob this results in emails, or when no MTA is configured: ``` CRON[1095]: (CRON) info (No MTA installed, discarding output) ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 335282e..59b613d 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Assuming InfluxDB is running on the Raspberry Pi as well. cat > /etc/cron.d/itho <> /var/log/itho.log + */5 * * * * root cd /root/python-itho-wpu && DIRENV_LOG_FORMAT='' direnv exec . ./itho-wpu.py --action getdatalog --export-to-influxdb >> /var/log/itho.log EOT ```