From 92f254079284e8e76e64625ba969a8ca9cae3e54 Mon Sep 17 00:00:00 2001 From: David Lamkin Date: Sat, 21 May 2022 17:22:22 +0100 Subject: [PATCH] Use posix sh compatible redirect in crontab &> is a bash shortcut to redirect both stdout and stderr it is more portable to use '>/dev/null 2>&1' to achieve this effect. Without this change the pi mailbox is filled with cron job output --- templates/cleanup.cron | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cleanup.cron b/templates/cleanup.cron index 4fb2fec..03a84f5 100644 --- a/templates/cleanup.cron +++ b/templates/cleanup.cron @@ -1,6 +1,6 @@ #birdnet -*/5 * * * * $USER /usr/local/bin/disk_check.sh &> /dev/null +*/5 * * * * $USER /usr/local/bin/disk_check.sh >/dev/null 2>&1 #birdnet -*/3 * * * * $USER /usr/local/bin/cleanup.sh &> /dev/null +*/3 * * * * $USER /usr/local/bin/cleanup.sh >/dev/null 2>&1 #birdnet -@reboot $USER /usr/local/bin/cleanup.sh &> /dev/null +@reboot $USER /usr/local/bin/cleanup.sh >/dev/null 2>&1