--- cron.weekly.orig	2026-01-07 04:48:13.889299278 +0000
+++ cron.weekly	2026-01-07 04:52:28.453268911 +0000
@@ -19,9 +19,13 @@
     IONICE="/usr/bin/ionice -c3"
 fi
 
-exec 3>&1
+output=$(mktemp)
 
-$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee "$output" | sed 's/^debsums: //' | logger -t debsums
+
+# Send a copy of output to email
+cat "$output"
+rm -f "$output"
 
 # Exit with a normal status code even if errors (which could be ignored) were found
 exit 0
