Manpage and scripts/services/secure patches

Jan Synacek <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <d57306f0-cf1a-43bb-81b1-92d8c7e9e076@zmail11.collab.prod.int.phx2.redhat.com>
Hello again, list,

I took the liberty to update logwatch man page and also fix a minor grammar issue in scripts/services/secure.
Patches attached.

Best regards,
Jan Synacek

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel
manpage.patch (text/x-patch, 2.2 KB)
Index: logwatch.8
===================================================================
--- logwatch.8	(revision 78)
+++ logwatch.8	(working copy)
@@ -66,7 +66,6 @@
 .IP "\fB--mailto\fR address"
 Mail the results to the email address or user specified in
 .I address.
-This option overrides the \-\-print option.
 .IP "\fB--range\fR range"
 You can specify a date-range to process. Common ranges are  
 .I Yesterday, Today, All,
@@ -102,10 +101,28 @@
 if HostLimit is set in the logwatch.conf configuration file (see
 \fBMORE INFORMATION\fR, below),
 then only logs from this hostname will be processed (where appropriate).
+.IP "\fB--hostformat\fR report-options"
+Can be one of none (default), split, splitmail.
+If
+.I report-options
+is set to split, status report entries are generated separately by hostname.
+Setting it to splitmail has the same effect as split with added --output=mail.
+.IP "\fB--output\fR output-type"
+Specifies output type.
+.I output-type
+can be stdout (default), mail or file.
+.IP "\fB--format\fR formatting"
+Specifies output format.
+.I formatting
+can be either text (default) or html.
+.IP "\fB--encode\fR encoding"
+Encodes the output.
+.I encoding
+can be none (default) or base64.
 .IP "\fB--numeric\fR"
 Inhibits additional name lookups, displaying IP addresses numerically.
 .IP "\fB--usage\fR"
-Displays usage information
+Displays usage information.
 .IP "\fB--help\fR"
 same as \-\-usage.
 .SH FILES
@@ -121,15 +138,20 @@
 information.
 .RE
 .SH EXAMPLES
-.B logwatch --service ftpd-xferlog --range all --detail high --print --archives
+.B logwatch --service ftpd-xferlog --range all --detail high --archives
 .RS
 This will print out all FTP transfers that are stored in all current and archived
 xferlogs.
 .RE
-.B logwatch --service pam_pwdb --range yesterday --detail high --print
+.B logwatch --service pam_pwdb --range yesterday --detail high
 .RS
 This will print out login information for the previous day...
 .RE
+.B logwatch --format html --encode base64 --output file --filename encoded.html
+.RS
+This will print all service information into a base64-encoded file named
+encoded.html
+.RE
 .SH MORE INFORMATION
 The directory /usr/share/doc/logwatch-* contains several files with additional
 documentation:
secure-gram.patch (text/x-patch, 384 B)
Index: scripts/services/secure
===================================================================
--- scripts/services/secure	(revision 78)
+++ scripts/services/secure	(working copy)
@@ -675,7 +675,7 @@
 }
 
 if ($RootLoginTTY) {
-   print "\nRoot logins on tty\'s: $RootLoginTTY Time(s).\n";
+   print "\nRoot logins on ttys: $RootLoginTTY Time(s).\n";
 }
 
 if (keys %UserLogin) {
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.