[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: "Nikolai N. Fetissov" <nikolai_(_dot_)_fetissov_(_at_)_peachisland_(_dot_)_com>
- Date: Tue, 8 Mar 2005 13:01:29 -0500 (EST)
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.
--
nick
On Tue, March 8, 2005 11:49 am, Theo de Raadt said:
> Of course -- because noone has supplied a reason for why this should
> NOT BE DONE.
>
> We are getting tired of patches that say "why not do this" without
> explaining what the patch is trying to resolve.
>
> That said, I am deleting this mail. Come on guys.
>
>
>
>
>> Any reason for not doing this?
>> --
>> nick
>>
>> Index: src/etc/daily
>> ===================================================================
>> RCS file: /cvs/src/etc/daily,v
>> retrieving revision 1.48
>> diff -u -r1.48 daily
>> --- src/etc/daily 2004/12/07 19:08:15 1.48
>> +++ src/etc/daily 2005/03/08 16:21:30
>> @@ -11,7 +11,7 @@
>> if [ -f /etc/daily.local ]; then
>> echo ""
>> echo "Running daily.local:"
>> - . /etc/daily.local
>> + . /etc/daily.local 2>&1
>> fi
>>
>> TMP=`mktemp /tmp/_daily.XXXXXXXXXX` || exit 1
>> Index: src/etc/weekly
>> ===================================================================
>> RCS file: /cvs/src/etc/weekly,v
>> retrieving revision 1.14
>> diff -u -r1.14 weekly
>> --- src/etc/weekly 2003/06/30 22:04:57 1.14
>> +++ src/etc/weekly 2005/03/08 16:21:30
>> @@ -9,7 +9,7 @@
>> if [ -f /etc/weekly.local ]; then
>> echo ""
>> echo "Running weekly.local:"
>> - . /etc/weekly.local
>> + . /etc/weekly.local 2>&1
>> fi
>>
>> echo ""
>> Index: src/etc/monthly
>> ===================================================================
>> RCS file: /cvs/src/etc/monthly,v
>> retrieving revision 1.5
>> diff -u -r1.5 monthly
>> --- src/etc/monthly 1998/02/02 23:08:57 1.5
>> +++ src/etc/monthly 2005/03/08 16:21:30
>> @@ -4,7 +4,7 @@
>> if [ -f /etc/monthly.local ];then
>> echo ""
>> echo "Running monthly.local:"
>> - . /etc/monthly.local
>> + . /etc/monthly.local 2>&1
>> else
>> echo "Nothing to do!"
>> fi
Visit your host, monkey.org