bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BASH_XTRACEFD=1 read variable stdout flushing?


From: Greg Wooledge
Subject: Re: BASH_XTRACEFD=1 read variable stdout flushing?
Date: Mon, 16 Jan 2023 14:46:28 -0500

On Mon, Jan 16, 2023 at 11:36:18AM -0600, dave.drambus@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]