[PATCH] --output option unconfused
Roman Kononov <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, This patch - removes "--print" option from the man page; - explains "--output" option in the man page; - falls back to "--output stdout" when "--output file" is specified without "--filename file" (similar to "--output mail" without "--mailto address"; Roman Kononov _______________________________________________ Logwatch-Devel mailing list [email protected] http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
output-option.patch
(text/x-patch, 1.3 KB)
Index: logwatch.8
===================================================================
RCS file: /var/cvs/logwatch/logwatch.8,v
retrieving revision 1.20
diff -r1.20 logwatch.8
14c14
< .B ] [--print] [--mailto
---
> .B ] [--mailto
66,67c66,69
< .IP "\fB--print\fR"
< Print the results to stdout (i.e. the screen).
---
> .IP "\fB--output\fR output-type"
> This specifies the destination for the logwatch report. The valid values for
> .I output-type
> are: stdout [default], mail, file.
71c73
< This option overrides the \-\-print option.
---
> This option overrides the \-\-output option.
126c128
< .B logwatch --service ftpd-xferlog --range all --detail high --print --archives
---
> .B logwatch --service ftpd-xferlog --range all --detail high --archives
131c133
< .B logwatch --service pam_pwdb --range yesterday --detail high --print
---
> .B logwatch --service pam_pwdb --range yesterday --detail high
Index: scripts/logwatch.pl
===================================================================
RCS file: /var/cvs/logwatch/scripts/logwatch.pl,v
retrieving revision 1.212
diff -r1.212 logwatch.pl
270a271,275
> #Fall back to stdout if output is file and no filename exists
> if ($Config{'output'} eq "file" and $Config{'filename'} eq "") {
> $Config{'output'} = "stdout";
> }
>