Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2012 23:26:11 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        Garrett Cooper <yanegomi@gmail.com>, FreeBSD current mailing list <freebsd-current@freebsd.org>
Subject:   Re: periodic emails
Message-ID:  <253A49B1-3711-4B16-8569-E445E234A834@lists.zabbadoz.net>
In-Reply-To: <4F02390E.4080303@FreeBSD.org>
References:  <E4CECE08-C9BE-4CA5-842B-420A44DCF461@lists.zabbadoz.net> <CAGH67wSUuzMtS51gOV5POEmuw3Do-Kcg6H3dawpDJ39a=OSw7A@mail.gmail.com> <4F023387.1060300@FreeBSD.org> <CAGH67wQOhsqBCRSWwH%2BaUVZWXzN0X6jLZr5L1MZycPx_-Ldygg@mail.gmail.com> <4F02350D.2050500@FreeBSD.org> <C490E037-1664-4847-81EF-0A49DC089B72@lists.zabbadoz.net> <4F02390E.4080303@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2. Jan 2012, at 23:09 , Doug Barton wrote:

> On 01/02/2012 15:01, Bjoern A. Zeeb wrote:
>> Looking at periodic(8) it says:
>>=20
>>     Each script is required to exit with one of the following values:
>>=20
>>     0     The script has produced nothing notable in its output.  The
>>           <basedir>_show_success variable controls the masking of =
this out-
>>           put.
>>=20
>>     1     The script has produced some notable information in its =
output.
>>           The <basedir>_show_info variable controls the masking of =
this out-
>>           put.
>>=20
>>     2     The script has produced some warnings due to invalid =
configuration
>>           settings.  The <basedir>_show_badconfig variable controls =
the mask-
>>           ing of this output.
>>=20
>>> 2    The script has produced output that must not be masked.
>>=20
>>=20
>> Could it even be that if setting the correct "*_show_*" config option
>> could do the right thing for me already?  I have no clue how that =
"masking" is
>> done and in which category "has not produced any output but the =
heading"
>> would fall into and if other things would possibly be hidden as well?
>=20
> I'm not sure which problem you're trying to solve. Are you trying to
> solve the problem of "scripts that are enabled but don't have any =
output
> other than the header should not output anything at all?"  If so, then
> yes, then *_show_success=3D"NO" is likely what you're after.
>=20
> I assumed from your OP that you were trying to solve a different
> problem, but it's starting to seem like I read it wrong. Can you =
clarify?

How did you read it?

The follow-up thing is "if the email is empty, don't send it".

The problem I have with the description is that "nothing notable" !=3D =
"nothing"
or "nothing but the header" in my view.  I read it as "there was output
beyond the heading".


/bz

--=20
Bjoern A. Zeeb                                 You have to have visions!
   It does not matter how good you are. It matters what good you do!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?253A49B1-3711-4B16-8569-E445E234A834>