On Saturday 26 March 2005 07:58 am, Simon wrote: > I am running the following cron job: > > /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s "Rkhunter Check" 2>&1 > > I get the following message : > Output from command /usr/bin/rkhunter -c | mail [EMAIL PROTECTED] -s > "Rkhunter Check" 2>&1 .. > /bin/sh: line 1: mail: command not found > > Any ideas how to get the mail command to work? > > TIA, > Simon.
Simon, this is how I have my rkhunter cronjob setup /usr/local/bin/rkhunter --cronjob --createlogfile -c and I have the following entry in my /etc/crontab: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin [EMAIL PROTECTED] therefore all cronjob outputs are sent to my email address, this includes my Spamassassin statistics outputs, hourly logcheck output, and rules_du_jour output. HTH Chris -- Chris Registered Linux User 283774 http://counter.li.org 08:43:53 up 12 days, 13:18, 1 user, load average: 0.23, 0.43, 0.46 Mandrake Linux 10.1 Official, kernel 2.6.8.1-12mdk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blow it out your ear. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________