Re: [Logwatch] Fwd: Default to STDOUT: is it really a good thing?

Mike Tremaine <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Willi Mann wrote:
>> Also, anything coming from cron is "something that went wrong" (apart from 
>> debugging) and I have my incoming mail filtered accordingly.
> 
> I agree, but logwatch without options should still print on command-line
> IMHO.
> 
> When called from cron, it should get an option that makes it send mail
> instead.
> 
> So my proposal:
> 1) Change the symlink in /etc/cron.daily to a bash script, so you can
> set command-line options.

Thought about that also. [But see below]

> 2) Either allow the mailto option to take no parameter or add another
> option (email) that can be used in the cron bash script to
> switch from print to email without specifing an email address.
> 

In the proposed change I set out the "--output mail" option will do the 
right thing.

Just to post it again here is the proposed new options.

New:

--output stdout [default], mail
--format text [default], html
--encode
--save [flips output stdout]
--mailto [flips output mail]

-Mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.