[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirect stderr to stdout for {daily,weekly,monthly}.local
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Redirect stderr to stdout for {daily,weekly,monthly}.local
- From: yary hluchan <not_(_dot_)_com_(_at_)_gmail_(_dot_)_com>
- Date: Tue, 8 Mar 2005 11:01:58 -0800
- Reply-to: yary hluchan <not_(_dot_)_com_(_at_)_gmail_(_dot_)_com>
On Tue, 8 Mar 2005 13:01:29 -0500 (EST), Nikolai N. Fetissov
<nikolai_(_dot_)_fetissov_(_at_)_peachisland_(_dot_)_com> wrote:
> My reason for doing this is that some things
> I run in /etc/{daily,weekly,monthly}.local,
> like smbclient, spew stuff onto stderr breaking
> my lovely gpg encryption of {daily,weekly,monthly}
> emails.
> If that's not enough reason, well, sorry for the noise.
So you've removed /etc/{daily,weekly,monthly} from the cron jobs and
written your own script to run them and handle the output? Then have
your scripts handle the stderr, for example
/etc/daily 2>&1 | gpg -seat
Other people may have thieir own scripts that depend on stdout and
stderr being different streams
Visit your host, monkey.org