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
This commit is contained in:
David Lamkin
2022-05-21 17:22:22 +01:00
parent ed04568322
commit 92f2540792
+3 -3
View File
@@ -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