various fixes
[distro-setup] / filesystem / etc / cron.d / ian
index 53fbf3fda07d6139298daf550304529918876d0c..76ebe3bc9fb511944491c997ef626eae0cae5ac2 100644 (file)
@@ -1,8 +1,9 @@
 SHELL=/bin/bash
-*/10 * * * *   iank /a/exe/rootsshsync 2>&1 | /usr/local/bin/log-once -15 rootsshsync
+PATH=/usr/bin:/bin:/usr/local/bin:/a/exe
+*/10 * * * *   iank rootsshsync |& log-once -15 rootsshsync
 # this goes into bash prompt, does in cron for more efficient shell
-* * * * *   iank /a/exe/system-status 2>&1 | /usr/local/bin/log-once system-status
-2 * * * *   iank /a/exe/check-remote-mailqs 2>&1 | /usr/local/bin/log-once check-remote-mailqs
-# If theres any logged errors we didnt handle in 5 days, maybe we accidentally missed them,
+* * * * *   iank system-status |& log-once system-status
+2 * * * *   iank check-remote-mailqs |& log-once check-remote-mailqs
+# If theres any logged errors we didnt handle in 3 days, maybe we accidentally missed them,
 # so report if we did
-4 9 * * 5   root find /var/local/cron-errors /home/iank/cron-errors -type f -mtime +5
+4 9 * * 5   root find /var/local/cron-errors /home/iank/cron-errors -type f -mtime +3