On Mon, Jan 16, 2023 at 11:36:18AM -0600, dave.dram...@gmail.com wrote: > hence `set -x`, but I want the output to go to stdout rather than > stderr so > that cron emails me only when there is an actual failure. With this
Cron sends email if there's any output on either stdout or stderr. From the POSIX crontab man page: If standard output and standard error are not redirected by commands executed from the crontab entry, any generated output or errors shall be mailed, via an implementation-defined method, to the user.