On Fri, 2008-07-04 at 13:49 +0100, Frank Murphy wrote:
> On Fri, 2008-07-04 at 13:44 +0100, John Horne wrote:
> > On Fri, 2008-07-04 at 12:47 +0100, Frank Murphy wrote:
> > > Run as a cron job (implies -c, --sk and --nocolors options)
> > >
> > > How can update this to mail the whole log to "root"
> > > not just "warning, please check machine x"
> > >
> > Have you tried the '--display-logfile' option?
> >
>
> No, I took it at face value that it just showed the log after manual
> scan. Will test though
>
The option quite literally just does a 'cat' of the logfile after the
run - regardless of whether RKH was invoked on the command-line or via
cron.
However, there are other ways of doing what you asked. From cron you
could have done:
rkhunter --cronjob; cat /var/log/rkhunter.log (which is pretty
much what --display-logfile does)
or
rkhunter --cronjob; mail -s "RKH run" root </var/log/rkhunter.log
No doubt there are other ways too :-)
John.
--
---------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 587287
E-mail: [EMAIL PROTECTED] Fax: +44 (0)1752 587001
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Rkhunter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users