On Sat, 2005-03-26 at 23:35, 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.

You want to have absolute paths in that script:

/usr/bin/rkhunter -c | /usr/bin/mail [EMAIL PROTECTED] -s "Rkhunter
Check" 2>&1

--
stephen kuhn
mobile: 0410-728-389
illawarra and regional new south wales
-----------------------------------------------
GNU/Linux/OpenSource Solutions and Alternatives
100% Microsoft Free :: Crashing is NOT an option.
Registered Linux User # 267497
-----------------------------------------------
Wear Apple/Macintosh garb to show the world that we're not crawling into
holes and dying. -- Guy Kawasaki


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to