[Logcheck-commits] CVS logcheck/src
CVS User maks-guest
logcheck-devel@lists.alioth.debian.org
Sun, 13 Jun 2004 04:13:20 -0600
Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv25519/src
Modified Files:
logcheck
Log Message:
yet another new switch:
-m address send the report to the specified recpient.
well that may be now in combination with "-l" a nice solution
for the oldest wishlist bug, beside it's easy to implement.
--- /cvsroot/logcheck/logcheck/src/logcheck 2004/06/12 18:31:32 1.62
+++ /cvsroot/logcheck/logcheck/src/logcheck 2004/06/13 10:13:19 1.63
@@ -22,7 +22,7 @@
# along with Logcheck; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: logcheck,v 1.62 2004/06/12 18:31:32 maks-guest Exp $
+# $Id: logcheck,v 1.63 2004/06/13 10:13:19 maks-guest Exp $
# Set the umask
@@ -34,7 +34,7 @@
ATTACK=0
# Set the getopts string
-GETOPTS="c:dhl:L:opr:RsS:tT:uvw"
+GETOPTS="c:dhl:L:m:opr:RsS:tT:uvw"
# Get the details for the email message
# Hostname either fully qualified or not.
@@ -409,6 +409,7 @@
-h = print this usage guide and exit
-l LOG = run logfile through logcheck
-L CFG = overrule default logfiles list
+ -m = email the report to recipient
-o = stdout mode, not sending mail
-p = runlevel "paranoid"
-r DIR = overrule default rules directory
@@ -490,6 +491,10 @@
debug "Setting LOGFILES_LIST to $OPTARG"
LOGFILES_LIST="$OPTARG"
;;
+ m)
+ debug "Setting SENDMAILTO to $OPTARG"
+ SENDMAILTO="$OPTARG"
+ ;;
o)
debug "Setting MAILOUT to 1"
MAILOUT="1"