On Wed, 2007-07-25 at 00:17 +0200, Jim Knuth wrote:
> 
> 
> My daily cronjob:
> 
> #!/bin/sh
> (
> /usr/local/bin/rkhunter --versioncheck
> /usr/local/bin/rkhunter --update
> /usr/local/bin/rkhunter --cronjob --rwo
> ) | /usr/bin/mail -s 'rkhunter Daily Run' root
> 
Change to:

  /usr/local/bin/rkhunter --versioncheck --nocolors
  /usr/local/bin/rkhunter --update --nocolors
 
Alternatively just combine it into one command:

  /usr/local/bin/rkhunter --versioncheck --update --cronjob --rwo

If you really only want warnings and nothing else, then you could use:

  /usr/local/bin/rkhunter --versioncheck -q
  /usr/local/bin/rkhunter --update -q
  /usr/local/bin/rkhunter --cronjob --rwo

You can, if you want, check the return code when '-q' is used to see if
everything went okay.



John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]       Fax: +44 (0)1752 233839

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to