Make output of cron-jobs suppressible / have no output

Every time one of the cron-jobs that comes with pi-hole is carried out, an email is sent to root (even when successful). This is because the cron-jobs have an output - even when succesfull. It is - of course - suppressible 'by hand' by adding

>/dev/null 2>&1

at the end of the jobs in /etc/cron.d/pihole. However, this file is overwritten every time the software is updated.

It would be nice (imho) if there was an option to suppress output of the cron-jobs (when successful) in the web-interface OR that default for the successful carrying out of such a job would be "null".

You're better of using >/dev/null, NOT >/dev/null 2>&1 This will suppress mails, if the cron job runs normally, but will still send a mail if the job fails, at least, that is what I did.

1 Like

You are absolutely right my friend.

This has been implemented